Click here to Skip to main content
15,883,901 members
Home / Discussions / C#
   

C#

 
GeneralRe: Beginner Questions Pin
Mustafa Ismail Mustafa4-Jan-05 19:07
Mustafa Ismail Mustafa4-Jan-05 19:07 
Generalintegration with VS.NET 2003 Pin
Aryadip4-Jan-05 15:52
Aryadip4-Jan-05 15:52 
GeneralRe: integration with VS.NET 2003 Pin
Heath Stewart4-Jan-05 21:19
protectorHeath Stewart4-Jan-05 21:19 
GeneralC# Code Generators for Database Tier Pin
jareddavies4-Jan-05 15:45
jareddavies4-Jan-05 15:45 
GeneralRe: C# Code Generators for Database Tier Pin
Steven Campbell4-Jan-05 16:45
Steven Campbell4-Jan-05 16:45 
GeneralRe: C# Code Generators for Database Tier Pin
jareddavies5-Jan-05 16:38
jareddavies5-Jan-05 16:38 
GeneralObtaining a generated hwnd handle without making a window Pin
cimnik0294-Jan-05 15:26
cimnik0294-Jan-05 15:26 
GeneralRe: Obtaining a generated hwnd handle without making a window Pin
Heath Stewart4-Jan-05 21:19
protectorHeath Stewart4-Jan-05 21:19 
To get an HWND (an IntPtr in .NET) for an existing Window, P/Invoke FindWindow[^].

If you want to create a Window without instantiation a Form*, you can P/Invoke CreateWindow or, preferably, the CreateWindowEx[^] API, which you can read about in the MSDN Library[^].

* Keep in mind that any control or form you create is a window. Each is tied to an HWND (via the Control.Handle property that every control - including the Form class - inherits), just like with native code. Even Java AWT and Swing classes are ultimately tied to an HWND, though through the JVM.

Also, just instantiating a Control derivative doesn't create the window. The control must be set to visible so that the window is actually created and the Control class derivative is tied to the new HWND. This is reflected by the OnHandleCreated event handler and the HandleCreated event.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: Obtaining a generated hwnd handle without making a window Pin
cimnik0295-Jan-05 10:23
cimnik0295-Jan-05 10:23 
GeneralRe: Obtaining a generated hwnd handle without making a window Pin
Heath Stewart5-Jan-05 14:52
protectorHeath Stewart5-Jan-05 14:52 
GeneralEmail Problem Pin
Julianne_juju4-Jan-05 15:16
Julianne_juju4-Jan-05 15:16 
GeneralRe: Email Problem Pin
Heath Stewart4-Jan-05 20:37
protectorHeath Stewart4-Jan-05 20:37 
GeneralRe: Email Problem Pin
Julianne_juju6-Jan-05 6:17
Julianne_juju6-Jan-05 6:17 
GeneralWSE 2.0 and Encryption Pin
Bill Dean4-Jan-05 14:48
Bill Dean4-Jan-05 14:48 
GeneralRe: WSE 2.0 and Encryption Pin
Heath Stewart4-Jan-05 20:31
protectorHeath Stewart4-Jan-05 20:31 
GeneralRe: WSE 2.0 and Encryption Pin
Bill Dean5-Jan-05 3:26
Bill Dean5-Jan-05 3:26 
GeneralRe: WSE 2.0 and Encryption Pin
Heath Stewart5-Jan-05 7:09
protectorHeath Stewart5-Jan-05 7:09 
GeneralRe: WSE 2.0 and Encryption Pin
Bill Dean5-Jan-05 9:35
Bill Dean5-Jan-05 9:35 
GeneralRe: WSE 2.0 and Encryption Pin
Heath Stewart5-Jan-05 14:51
protectorHeath Stewart5-Jan-05 14:51 
GeneralRe: WSE 2.0 and Encryption Pin
Bill Dean6-Jan-05 4:36
Bill Dean6-Jan-05 4:36 
GeneralSocket receiving too slowly Pin
tantiboh4-Jan-05 13:51
tantiboh4-Jan-05 13:51 
GeneralRe: Socket receiving too slowly Pin
Heath Stewart4-Jan-05 20:17
protectorHeath Stewart4-Jan-05 20:17 
GeneralRe: Socket receiving too slowly Pin
tantiboh5-Jan-05 18:52
tantiboh5-Jan-05 18:52 
GeneralXmodem implimentation Pin
therealmccoy4-Jan-05 12:35
therealmccoy4-Jan-05 12:35 
GeneralRe: Xmodem implimentation Pin
Heath Stewart4-Jan-05 13:37
protectorHeath Stewart4-Jan-05 13:37 

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.