Click here to Skip to main content
15,913,587 members
Home / Discussions / C#
   

C#

 
GeneralPassing managed object using Drag Drop Pin
rkvs2-Jun-04 7:42
rkvs2-Jun-04 7:42 
GeneralRe: Passing managed object using Drag Drop Pin
Heath Stewart2-Jun-04 9:03
protectorHeath Stewart2-Jun-04 9:03 
GeneralFolder Browser Strangeness Pin
Russell Jones2-Jun-04 6:45
Russell Jones2-Jun-04 6:45 
GeneralRe: Folder Browser Strangeness Pin
Stefan Troschuetz2-Jun-04 8:08
Stefan Troschuetz2-Jun-04 8:08 
GeneralRe: Folder Browser Strangeness Pin
Russell Jones2-Jun-04 22:05
Russell Jones2-Jun-04 22:05 
GeneralRe: Folder Browser Strangeness Pin
Stefan Troschuetz2-Jun-04 23:10
Stefan Troschuetz2-Jun-04 23:10 
GeneralRe: Folder Browser Strangeness Pin
Russell Jones3-Jun-04 0:30
Russell Jones3-Jun-04 0:30 
GeneralTask Switching while in Full-Screen mode Pin
strunks2-Jun-04 6:02
strunks2-Jun-04 6:02 
Hi guys, here's my problem.

I have a C# console application and a C# windows forms application running on Windows 2000. The console app runs in a full-screen console, the windows app in a normal window.

Most of the time I will be in full screen mode. But sometimes, my console app will need the help of my windows app, so it makes a remote call to the windows app.

The windows app maximizes iself and takes the focus (user needs to see some information). This causes the console to minimize, and I can see windows desktop, taskbars, all that. After the windows app is done, I want the console app to take the focus back and into fullscreen mode again.

But I can't seem to get that last step to work. Best I've been able to do is make the console window blink on the taskbar. I used DllImport attribute to import user32.dll, and used the WinAPI function SetForegroundWindow to do that.

I basically want to emulate the Alt-Tab functionality. So, since Alt-Tab works there must be a proper way for me to get it to work too. I just don't know what that is. What's the proper way to do this?

GeneralRe: Task Switching while in Full-Screen mode Pin
Heath Stewart2-Jun-04 6:39
protectorHeath Stewart2-Jun-04 6:39 
GeneralRe: Task Switching while in Full-Screen mode Pin
strunks2-Jun-04 7:01
strunks2-Jun-04 7:01 
GeneralC# and MC++ Pin
Orhun Birsoy2-Jun-04 6:01
Orhun Birsoy2-Jun-04 6:01 
GeneralRe: C# and MC++ Pin
Heath Stewart2-Jun-04 6:31
protectorHeath Stewart2-Jun-04 6:31 
GeneralRe: C# and MC++ Pin
Orhun Birsoy2-Jun-04 7:13
Orhun Birsoy2-Jun-04 7:13 
GeneralRe: C# and MC++ Pin
Heath Stewart2-Jun-04 9:01
protectorHeath Stewart2-Jun-04 9:01 
QuestionSystemPen ? Pin
ongo2-Jun-04 4:13
ongo2-Jun-04 4:13 
AnswerRe: SystemPen ? Pin
Mazdak2-Jun-04 4:35
Mazdak2-Jun-04 4:35 
GeneralRetrieving Username Pin
briby2-Jun-04 3:23
briby2-Jun-04 3:23 
GeneralRe: Retrieving Username Pin
Heath Stewart2-Jun-04 3:38
protectorHeath Stewart2-Jun-04 3:38 
GeneralRe: Retrieving Username Pin
Atilla Ozgur2-Jun-04 3:57
Atilla Ozgur2-Jun-04 3:57 
GeneralRe: Retrieving Username Pin
briby3-Jun-04 0:02
briby3-Jun-04 0:02 
Generalhiding emails Pin
robmays2-Jun-04 2:40
robmays2-Jun-04 2:40 
GeneralRe: hiding emails Pin
Hesham Amin2-Jun-04 4:24
Hesham Amin2-Jun-04 4:24 
GeneralRe: hiding emails Pin
robmays2-Jun-04 4:29
robmays2-Jun-04 4:29 
GeneralOnClosing Pin
thomasa2-Jun-04 2:22
thomasa2-Jun-04 2:22 
GeneralRe: OnClosing Pin
LongRange.Shooter2-Jun-04 2:45
LongRange.Shooter2-Jun-04 2:45 

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.