Click here to Skip to main content
15,887,854 members
Home / Discussions / C#
   

C#

 
QuestionVideo File Manipulation Pin
jphuphilly10-Oct-05 14:44
jphuphilly10-Oct-05 14:44 
AnswerRe: Video File Manipulation Pin
jphuphilly11-Oct-05 11:24
jphuphilly11-Oct-05 11:24 
QuestionGet Previous Window Handle? Pin
Kasdoffe10-Oct-05 11:24
Kasdoffe10-Oct-05 11:24 
AnswerRe: Get Previous Window Handle? Pin
S. Senthil Kumar10-Oct-05 15:25
S. Senthil Kumar10-Oct-05 15:25 
GeneralRe: Get Previous Window Handle? Pin
Kasdoffe11-Oct-05 2:16
Kasdoffe11-Oct-05 2:16 
GeneralRe: Get Previous Window Handle? Pin
Dave Kreskowiak11-Oct-05 4:47
mveDave Kreskowiak11-Oct-05 4:47 
GeneralRe: Get Previous Window Handle? Pin
12-Oct-05 3:08
suss12-Oct-05 3:08 
GeneralRe: Get Previous Window Handle? Pin
Dave Kreskowiak12-Oct-05 11:51
mveDave Kreskowiak12-Oct-05 11:51 
There is no API call you can make to give you the last window that had the focus.

The only thing I can think of is to override the WndProc procedure in your main window and handle the WM_ACTIVATE[^] message. You'll have to track the window handle of the window that is being deactivated, then get the parent window of that window handle until you reach the top-level window handle of the application.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Get Previous Window Handle? Pin
Kasdoffe13-Oct-05 5:47
Kasdoffe13-Oct-05 5:47 
QuestionPerformance of Win service process with multiple services Pin
Eugenio Lysei Junior10-Oct-05 10:12
Eugenio Lysei Junior10-Oct-05 10:12 
GeneralRe: Performance of Win service process with multiple services Pin
Andy Brummer10-Oct-05 11:09
sitebuilderAndy Brummer10-Oct-05 11:09 
QuestionDisplay a image on a Button with button.FlatStyle = FlatStyle.System Pin
miah alom10-Oct-05 10:09
miah alom10-Oct-05 10:09 
AnswerRe: Display a image on a Button with button.FlatStyle = FlatStyle.System Pin
XRaheemX10-Oct-05 10:12
XRaheemX10-Oct-05 10:12 
GeneralRe: Display a image on a Button with button.FlatStyle = FlatStyle.System Pin
miah alom10-Oct-05 10:15
miah alom10-Oct-05 10:15 
GeneralRe: Display a image on a Button with button.FlatStyle = FlatStyle.System Pin
XRaheemX10-Oct-05 11:30
XRaheemX10-Oct-05 11:30 
GeneralRe: Display a image on a Button with button.FlatStyle = FlatStyle.System Pin
miah alom11-Oct-05 3:30
miah alom11-Oct-05 3:30 
GeneralRe: Display a image on a Button with button.FlatStyle = FlatStyle.System Pin
XRaheemX11-Oct-05 3:40
XRaheemX11-Oct-05 3:40 
GeneralRe: Display a image on a Button with button.FlatStyle = FlatStyle.System Pin
miah alom11-Oct-05 3:46
miah alom11-Oct-05 3:46 
GeneralRe: Display a image on a Button with button.FlatStyle = FlatStyle.System Pin
XRaheemX11-Oct-05 3:51
XRaheemX11-Oct-05 3:51 
AnswerRe: Display a image on a Button with button.FlatStyle = FlatStyle.System Pin
Andy Moore10-Oct-05 16:01
Andy Moore10-Oct-05 16:01 
GeneralRe: Display a image on a Button with button.FlatStyle = FlatStyle.System Pin
miah alom11-Oct-05 3:29
miah alom11-Oct-05 3:29 
QuestionSimple Data Binding Pin
budidharma10-Oct-05 8:51
budidharma10-Oct-05 8:51 
AnswerRe: Simple Data Binding Pin
XRaheemX10-Oct-05 8:57
XRaheemX10-Oct-05 8:57 
AnswerRe: Simple Data Binding Pin
S. Senthil Kumar10-Oct-05 15:27
S. Senthil Kumar10-Oct-05 15:27 
QuestionDynamic DropDownList C# ASP.NET Pin
TheMajorRager10-Oct-05 8:36
TheMajorRager10-Oct-05 8:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.