Click here to Skip to main content
15,897,371 members
Home / Discussions / C#
   

C#

 
GeneralCalling unmanged DLL Pin
Andy Davey30-Apr-03 14:25
Andy Davey30-Apr-03 14:25 
GeneralRe: Calling unmanged DLL Pin
Andy Davey30-Apr-03 14:50
Andy Davey30-Apr-03 14:50 
GeneralRe: Calling unmanged DLL Pin
James T. Johnson30-Apr-03 15:07
James T. Johnson30-Apr-03 15:07 
GeneralRe: Calling unmanged DLL Pin
Andy Davey30-Apr-03 15:21
Andy Davey30-Apr-03 15:21 
GeneralRe: Calling unmanged DLL Pin
James T. Johnson30-Apr-03 15:42
James T. Johnson30-Apr-03 15:42 
GeneralRe: Calling unmanged DLL Pin
leppie1-May-03 7:13
leppie1-May-03 7:13 
GeneralCreating a control from a handle Pin
leppie30-Apr-03 13:21
leppie30-Apr-03 13:21 
GeneralRe: Creating a control from a handle Pin
Stephane Rodriguez.30-Apr-03 19:48
Stephane Rodriguez.30-Apr-03 19:48 
leppie wrote:
OK I have a HWND from a window, can I make a Control instance from that?

A window handle references a unique window in the desktop. Although a handle uniquely identifies a control (whether managed or not), a control is much more than a handle.
One thing I can guess is you want to create a control based on the window styles used by the window referred by the handle. In such a case, make sure to override the control class and fill the CreateParams structure. Creating a new control based on styles from an existing window requires interop (GetClassName, GetWindowLong, ...).


leppie wrote:
why does Control.FromHandle return null?

Control.FromHandle(IntPtr) does not create a control based on the passed parameter. It only tries to match the handle with one of the existing (managed) controls' handles.
GeneralRe: Creating a control from a handle Pin
leppie1-May-03 7:08
leppie1-May-03 7:08 
GeneralRe: Creating a control from a handle Pin
J. Dunlap1-May-03 7:14
J. Dunlap1-May-03 7:14 
GeneralRe: Creating a control from a handle Pin
Stephane Rodriguez.1-May-03 7:30
Stephane Rodriguez.1-May-03 7:30 
GeneralRe: Creating a control from a handle Pin
leppie1-May-03 8:13
leppie1-May-03 8:13 
QuestionControl?? Pin
Silverdelange30-Apr-03 11:21
sussSilverdelange30-Apr-03 11:21 
AnswerRe: Control?? Pin
Ray Hayes30-Apr-03 12:10
Ray Hayes30-Apr-03 12:10 
GeneralRe: Control?? Pin
Jon Newman2-May-03 1:56
Jon Newman2-May-03 1:56 
GeneralCool tool Pin
Kant30-Apr-03 10:34
Kant30-Apr-03 10:34 
GeneralRe: Cool tool Pin
Stephane Rodriguez.30-Apr-03 10:51
Stephane Rodriguez.30-Apr-03 10:51 
GeneralRe: Cool tool Pin
J. Dunlap30-Apr-03 11:13
J. Dunlap30-Apr-03 11:13 
GeneralModal Forms Pin
Mark Kimball30-Apr-03 10:25
Mark Kimball30-Apr-03 10:25 
GeneralRe: Modal Forms Pin
Stephane Rodriguez.30-Apr-03 11:24
Stephane Rodriguez.30-Apr-03 11:24 
GeneralRe: Modal Forms Pin
RB@Emphasys1-May-03 5:12
RB@Emphasys1-May-03 5:12 
GeneralRe: Modal Forms Pin
Bo Hunter6-May-03 12:43
Bo Hunter6-May-03 12:43 
GeneralAnother IE Browser problem Pin
Tomas Petricek30-Apr-03 10:18
Tomas Petricek30-Apr-03 10:18 
GeneralRe: Another IE Browser problem Pin
Stephane Rodriguez.30-Apr-03 11:15
Stephane Rodriguez.30-Apr-03 11:15 
GeneralRe: Another IE Browser problem Pin
Tomas Petricek30-Apr-03 12:49
Tomas Petricek30-Apr-03 12:49 

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.