Click here to Skip to main content
15,891,473 members
Home / Discussions / C#
   

C#

 
GeneralRe: Exit statment in visual C# Pin
A.Wegierski22-Apr-04 0:19
A.Wegierski22-Apr-04 0:19 
GeneralRe: Exit statment in visual C# Pin
Heath Stewart22-Apr-04 3:01
protectorHeath Stewart22-Apr-04 3:01 
GeneralRe: Exit statment in visual C# Pin
A.Wegierski22-Apr-04 19:59
A.Wegierski22-Apr-04 19:59 
GeneralRe: Exit statment in visual C# Pin
SJ_Phoenix22-Apr-04 0:42
SJ_Phoenix22-Apr-04 0:42 
GeneralC++ Bit Fields implementation in C# Pin
Vini Deep21-Apr-04 23:33
Vini Deep21-Apr-04 23:33 
GeneralRe: C++ Bit Fields implementation in C# Pin
A.Wegierski22-Apr-04 1:10
A.Wegierski22-Apr-04 1:10 
GeneralRe: C++ Bit Fields implementation in C# Pin
Vini Deep22-Apr-04 1:31
Vini Deep22-Apr-04 1:31 
GeneralRe: C++ Bit Fields implementation in C# Pin
Member 363026618-Dec-08 19:53
Member 363026618-Dec-08 19:53 
GeneralRe: C++ Bit Fields implementation in C# Pin
Tim Kohler22-Apr-04 1:22
Tim Kohler22-Apr-04 1:22 
GeneralRe: C++ Bit Fields implementation in C# Pin
A.Wegierski22-Apr-04 19:57
A.Wegierski22-Apr-04 19:57 
GeneralRe: C++ Bit Fields implementation in C# Pin
leppie22-Apr-04 7:22
leppie22-Apr-04 7:22 
Generalstruct/class .vs. Datasets Pin
BernardYardley21-Apr-04 23:17
BernardYardley21-Apr-04 23:17 
GeneralRe: struct/class .vs. Datasets Pin
Heath Stewart22-Apr-04 3:07
protectorHeath Stewart22-Apr-04 3:07 
GeneralRe: struct/class .vs. Datasets Pin
BernardYardley22-Apr-04 3:20
BernardYardley22-Apr-04 3:20 
GeneralRe: struct/class .vs. Datasets Pin
Heath Stewart22-Apr-04 4:05
protectorHeath Stewart22-Apr-04 4:05 
GeneralRe: struct/class .vs. Datasets Pin
BernardYardley22-Apr-04 4:33
BernardYardley22-Apr-04 4:33 
GeneralRe: struct/class .vs. Datasets Pin
Heath Stewart22-Apr-04 4:40
protectorHeath Stewart22-Apr-04 4:40 
GeneralRe: struct/class .vs. Datasets Pin
BernardYardley22-Apr-04 4:52
BernardYardley22-Apr-04 4:52 
Generalshowing a bitmap Pin
Amirjalaly21-Apr-04 21:55
Amirjalaly21-Apr-04 21:55 
GeneralRe: showing a bitmap Pin
Mazdak22-Apr-04 0:48
Mazdak22-Apr-04 0:48 
GeneralCreating object instance only known object name Pin
PEDRO_PASAMAR21-Apr-04 21:01
PEDRO_PASAMAR21-Apr-04 21:01 
GeneralRe: Creating object instance only known object name Pin
Bilal Farooq21-Apr-04 22:20
Bilal Farooq21-Apr-04 22:20 
GeneralUsing Images of Satellite Assemblies Pin
Bilal Farooq21-Apr-04 19:54
Bilal Farooq21-Apr-04 19:54 
GeneralRe: Using Images of Satellite Assemblies Pin
Heath Stewart22-Apr-04 3:29
protectorHeath Stewart22-Apr-04 3:29 
GeneralGet currently active window Pin
Bilal Farooq21-Apr-04 19:42
Bilal Farooq21-Apr-04 19:42 
Hi,

I have a dialog box implemented in C# and I want to make it the child of the currently active window. For this I want to get the ref to the current windows. I couldn't find anyway so that I could get this ref as Windows.Form object.
One thing I tried was that I used user32.dll GetForegroundWindow() to get the handle to the currently active windows and then use NativeWindow.FromHandle(IntPtr ) method to get the current windows as NativeWindow ref. But in this case I get the handler to the current windiows but the FromHandle method return me always null.

Does anyone know of a way to get the currently active windows?

Thanks
Bilal

Bilal Farooq

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.