Click here to Skip to main content
15,888,297 members
Home / Discussions / C#
   

C#

 
GeneralRe: Looping through all controls on a webform Pin
Dave Kreskowiak8-Jun-04 8:47
mveDave Kreskowiak8-Jun-04 8:47 
GeneralRe: Looping through all controls on a webform Pin
Heath Stewart8-Jun-04 8:48
protectorHeath Stewart8-Jun-04 8:48 
GeneralRe: Looping through all controls on a webform Pin
Andy Brummer8-Jun-04 8:40
sitebuilderAndy Brummer8-Jun-04 8:40 
GeneralPeriod key in numpad Pin
machocr8-Jun-04 5:34
machocr8-Jun-04 5:34 
GeneralRe: Period key in numpad Pin
Heath Stewart8-Jun-04 5:45
protectorHeath Stewart8-Jun-04 5:45 
GeneralRe: Period key in numpad Pin
machocr8-Jun-04 6:37
machocr8-Jun-04 6:37 
Questionwindows that don't receive focus?? Pin
jremignanti8-Jun-04 5:32
jremignanti8-Jun-04 5:32 
AnswerRe: windows that don't receive focus?? Pin
Heath Stewart8-Jun-04 6:06
protectorHeath Stewart8-Jun-04 6:06 
Windows Forms controls (as well as many classes in the .NET Framework Class Library (FCL) encapsulate native APIs. You need to research and understand the Windows APIs and common controls to do what you want. For instance, read the Windows Controls[^] and Windowing[^] sections in the Platform SDK. You need to understand window handles, styles, and message pumps.

You might try searching CodeProject for existing managed samples (in C#, VB.NET, whatever - it all gets compiled to roughly the same thing), but you'll most likely find the majority of samples in VC++ or MFC. Writing custom menu bars and toolbars in VC++ or MFC is very common and there are plenty of samples both here on CodeProject and on sites like CodeGuru[^].

For example, you'll want to override the protected CreateParams property in your control derivative and use the WS_POPUP (0x80000000) window style. See the Platform SDK for more details about that, which should give you some idea of where to start.

 

Microsoft MVP, Visual C#
My Articles
Questionasp.net script timeout? Pin
lelelele8-Jun-04 5:13
lelelele8-Jun-04 5:13 
AnswerRe: asp.net script timeout? Pin
Heath Stewart8-Jun-04 6:00
protectorHeath Stewart8-Jun-04 6:00 
GeneralCopy A Fixed String Buffer Into A Struct Pin
dgiljr8-Jun-04 5:05
dgiljr8-Jun-04 5:05 
GeneralRe: Copy A Fixed String Buffer Into A Struct Pin
Heath Stewart8-Jun-04 5:53
protectorHeath Stewart8-Jun-04 5:53 
GeneralRe: Copy A Fixed String Buffer Into A Struct Pin
dgiljr8-Jun-04 6:24
dgiljr8-Jun-04 6:24 
GeneralRe: Copy A Fixed String Buffer Into A Struct Pin
Heath Stewart8-Jun-04 6:31
protectorHeath Stewart8-Jun-04 6:31 
GeneralRe: Copy A Fixed String Buffer Into A Struct Pin
dgiljr8-Jun-04 7:01
dgiljr8-Jun-04 7:01 
GeneralRe: Copy A Fixed String Buffer Into A Struct Pin
Heath Stewart8-Jun-04 8:17
protectorHeath Stewart8-Jun-04 8:17 
GeneralRe: Copy A Fixed String Buffer Into A Struct Pin
dgiljr8-Jun-04 10:32
dgiljr8-Jun-04 10:32 
Generaltextbox control with multi colored rows Pin
gmahesh8-Jun-04 2:05
gmahesh8-Jun-04 2:05 
GeneralRe: textbox control with multi colored rows Pin
Aryadip8-Jun-04 2:48
Aryadip8-Jun-04 2:48 
GeneralRe: textbox control with multi colored rows Pin
gmahesh8-Jun-04 2:57
gmahesh8-Jun-04 2:57 
GeneralRe: textbox control with multi colored rows Pin
Aaron Eldreth8-Jun-04 3:47
Aaron Eldreth8-Jun-04 3:47 
GeneralRe: textbox control with multi colored rows Pin
gmahesh9-Jun-04 0:58
gmahesh9-Jun-04 0:58 
QuestionLoad file into string? Pin
Dominik Reichl8-Jun-04 1:43
Dominik Reichl8-Jun-04 1:43 
AnswerRe: Load file into string? Pin
Werdna8-Jun-04 3:27
Werdna8-Jun-04 3:27 
GeneralRe: Load file into string? Pin
Dominik Reichl8-Jun-04 4:14
Dominik Reichl8-Jun-04 4:14 

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.