window

How would you stop a thread when the Window is closing and...

...the class with the running thread is far away from the closing_event of the window. btw. we use composite application block from MS. ...

How to get hWnd of window opened by ShellExecuteEx.. hProcess?

This "simple" issue seems to be fraught with side issues. eg. Does the new process open multiple windows; Does it have a splash screen? Is there a simple way? (I'm starting a new instance of Notepad++) ... std::tstring tstrNotepad_exe = tstrProgramFiles + _T("\\Notepad++\\notepad++.exe"); SHELLEXECUTEINFO SEI={0}; sei.cbSize ...

Facebook Open Share Window from Application

Hello! How can I open the Share with friends window from inside a Flash application please? Thank you! ...

Overriding window.alert and passing multiple parameters.

I am trying to override the window.alert to pass multiple parameters. Please someone explain me why for/in inherits Array.prototype.tester's body into list? Thank you very much. Array.prototype.tester = function() { return 'tester'; } window.alert = function() { var args = Array.prototype.slice.call(arguments); var list ...

When using two frames in emacs, how do I prevent the compilation buffer from showing up in both?

I work with two monitors, and often use emacs with two frames open; one for each monitor. each frame is split into two side-by-side windows, like so: a | b <-- frame 1 in monitor 1 ------- c | d <-- frame 2 in monitor 2 When I hit my 'compile' button while in window a, the compilation buffer opens in the buffer next to it. So fa...

How to? WPF Window - Maximized, No Resize/Move

Hi guys, I'm trying to make a WPF window that opens already maximized, with no resize/move (in systemmenu, nor in border). It should be maximized all the time, except when the user minimize it. I tried to put WindowState="Maximized" and ResizeMode="CanMinimize", but when window opens, it covers the task bar (i don't want it). I have a...

JavaScript losing "this" object reference with private/public properties

I have the following error when running the page below: "this.testpublic is not a function" test = function() { var testprivate = function() { this.testpublic(); } this.testpublic = function() { console.log('test'); } testprivate(); } new test(); Apparently w...

JavaScript - Get Browser Height

Hi, 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 short. document.body.clientHeight; I have tried a couple of other things but they either return NaN or th...

Force WPF to render a window while hidden?

I've noticed that when I make a change to the visual presentation of a window while the window is hidden, the changes are not immediately visible when the window is shown. Rather, the window appears briefly in the state it was in when it was last-visible, taking 0.5-1 seconds to display the updated form. This can be confusing and ugly a...

Cocoa Touch, which to use: Window Template or View Template?

I have another issue related to Views, and i've ended up here dealing with Views and Windows in general. My understanding of all the fundamentals of iPhone development has been turned upside down. Can somebody explain, or point to a reference, the difference between these 2 templates? Ex: My app doesnt show a Window in the Interface B...

How to set a console application window to be the top most window (C#)?

How do i set a console application to be the top most window. I am building the console application in .NET (i am using C# and maybe even pinvokes to unmanaged code is ok). I thought that i could have my console application derive from Form class class MyConsoleApp : Form { public MyConsoleApp() { this.TopLevel = true; ...

How to store python 2.6 value in regedit

Do anyone that have python 2.6 in window , can you guys please open the regedit and see where and how python 2.6 store in HKEY_LOCAL_MACHINE/SOFTWARE ? Somehow i lost it in my regedit and cant install a module ... googled it , but i cant found any answer and i dont have extra computer to try and many module that i needed for my school pr...

Minimum Window for the given numbers in an array

Saw this question recently: Given 2 arrays, the 2nd array containing some of the elements of the 1st array, return the minimum window in the 1st array which contains all the elements of the 2nd array. Eg : Given A={1,3,5,2,3,1} and B={1,3,2} Output : 3 , 5 (where 3 and 5 are indices in the array A) Even though the range 1 to 4 als...

How to ensure my form is visible in C#?

I'm looking for a way to check to see that a window I am creating is visible and entirely on one monitor. I have seen too many programs do nasty things when they try to restore their position and the place no longer exists and I don't want my program to be vulnerable to this. How do I find the information on the actual layout of the mo...

How does a Windows Kernel mode Driver, access paged memory ?

1) A usermode process has its own "address context", which maps the user-mode virtual addresses to a unique collection of physical page frames. That is, the meaning of any particular virtual address changes from one moment to the next as the Windows XP scheduler switches threads. Part of work of "switching threads" is to change the page...

Getting selected item in active window

I am using C# to develop an application that works with the clipboard, an was wondering if its possible to get the contents of what the user has selected in the current window, no matter what window it is (e.g. could be FireFox, notepad, etc.). ...

jQuery, Proper context for window.open

I am trying to load a web page in a new window on class="link" Below is what I have but it does not seem to work in IE 7-8 $('.clicky').mousedown(function(){ window.open("http://google.com"); });​ Here is the complete context http://jsfiddle.net/Zw5c2/14/ Foolish me it was my pop up blocker. But I modified the scrip...

problem with terminating the running program

i am making a wpf application in which there is a main window. normally when i close the main window the program used to terminate automatically but now it doesn't. altough the window is closed the program still seems to be running in visual studio. how can i fix this simple problem? ...

What is the common denominator XML library across Linux and Windows for parsing XML in C or C++?

I want to parse some XML in a C and C++ app. This app is deployed to Windows and Linux. What is an XML library that is likely to be installed on many Linux distributions and is readily available on Windows? From my samples of Linux distros, libxml2 seems to be fairly common, but is there a more common xml library? ...

Fine Reader API, webservice

hi all i want to use finereader API to embed in my app. But i do not to know where i get API. Abby suport no much about webservice, API of finereader. i downloaded finereader 9.0 and installed, but i cannot see where APIs to call in my app (in window). thank ...