Questions tagged [window]

In computer science a window is a graphical interface to let a user interact with a program. Questions regarding Microsoft Windows should use the "Windows" tag.

A window is an area of the screen containing controls and other objects controlled by a program. A User can use these objects to instruct the program on what to do and the program can use these objects to show outputs related to user commands. A window is an important part of Operating Systems havin a Graphical User Interface (GUI).

9460 questions
60
votes
4 answers

Batch command to delete all subfolders with a specific name

I have a directory as such: D:\Movies D:\Movies\MovieTitle1\backdrops\ D:\Movies\MovieTitle2\backdrops\ D:\Movies\MovieTitle3\backdrops\ D:\Movies\MovieTitle4\backdrops\ How could I have a batch file delete all folders named "Backdrops"? I would…
Failstyle
  • 681
  • 1
  • 7
  • 10
59
votes
5 answers

Is it possible to create desktop applications with node.js?

I've created an application using node.js, and I'm interested to know if it's possible to pack the client side (js, html ,css) and the server side into a standalone application (that doesn't required browser).
itamarb
  • 2,559
  • 3
  • 29
  • 35
59
votes
8 answers

Javascript: open new page in same window

Is there an easy way to modify this code so that the target URL opens in the SAME window?
55skidoo
  • 749
  • 1
  • 6
  • 14
58
votes
12 answers

Loading a WPF Window without showing it

I create a global hot key to show a window by PInvoking RegisterHotKey(). But to do this I need that window's HWND, which doesn't exist until the window is loaded, that means shown for the first time. But I don't want to show the window before I can…
svick
  • 236,525
  • 50
  • 385
  • 514
57
votes
2 answers

Foreground Vs Active window

In Windows, what is the difference between foreground and active window? To be specific, under what circumstances can a foreground window not be an active window? If the 2 terms are referring to the same concept why there're 2 terms. The msdn…
JavaMan
  • 4,954
  • 4
  • 41
  • 69
56
votes
4 answers

Win32 window Owner vs window Parent?

In Win32 programming, what is the difference between a window's parent and a window's owner? I thought I had it figured out, then I came across this code: SetWindowLong(handle, GWL_HWNDPARENT, foo); This actually sets the window's owner, not the…
Jon Tackabury
  • 47,710
  • 52
  • 130
  • 168
55
votes
10 answers

JavaScript - Get Browser Height

I am looking for a code snippet to get the height of the viewable area within a browser window. I had this code, however it is somewhat bugged as if the the body doesn't exceed the height the of the window then it comes back…
ComputerUser
  • 4,828
  • 15
  • 58
  • 71
54
votes
5 answers

WPF Icon for all app windows

It is possible to set one Icon so, that it would be used on every window in current app. So that i set it once (not on every window by hand)..?
vts123
  • 1,736
  • 6
  • 27
  • 41
54
votes
11 answers

.NET / Windows Forms: remember windows size and location

I have a Windows Forms application with a normal window. Now when I close the application and restart it, I want that the main window appears at the same location on my screen with the same size of the moment when it was closed. Is there an easy way…
clamp
  • 33,000
  • 75
  • 203
  • 299
53
votes
5 answers

Combine onload and onresize (jQuery)

I want to call the function on load as well as on resize. Is there a better way to rewrite this more compactly? $('.content .right').width($(window).width() - (480)); $(window).resize(function(e) { $('.content .right').width($(window).width() -…
eozzy
  • 66,048
  • 104
  • 272
  • 428
53
votes
6 answers

Changing the start up location of a WPF window

I'd like to have a WPF window open in the top right part of the screen. Right now I can achieve that by opening the window and then moving it (via movewindow in user32.dll). However, this approach means the window opens in it's default location,…
Evan
  • 4,450
  • 10
  • 40
  • 58
52
votes
8 answers

jQuery window scroll event does not fire up

I'm trying to implement a simple "stay inside the viewport" behaviour to a div via jquery. For that i need to bind a function to the scroll event of the window, but i can't seem to get it to fire up: nothing happens. I've tried a simple alert(),…
pixeline
  • 17,669
  • 12
  • 84
  • 109
52
votes
5 answers

What's the difference between self and window?

I have a JavaScript that deals with with detection whether the page is in frames or not. I used top.frames[] etc. and everything works fine. In this script I noticed that I can use "window" or "self" interchangeably and everything still works. Is…
Milan Babuškov
  • 59,775
  • 49
  • 126
  • 179
51
votes
3 answers

AngularJS $watch window resize inside directive

I have revealing module pattern which looks like this: 'use strict'; angular.module('app', []) .directive('myDirective', ['SomeDep', function (SomeDep) { var linker = function (scope, element, attr) { // some work }; …
Lightfooted
  • 799
  • 1
  • 6
  • 13
50
votes
7 answers

How to restore a minimized Window in code-behind?

This is somewhat of a mundane question but it seems to me there is no in-built method for it in WPF. There only seems to be the WindowState property which being an enum does not help since i cannot tell whether the Window was in the Normal or…
H.B.
  • 166,899
  • 29
  • 327
  • 400