Click here to Skip to main content
15,922,512 members
Home / Discussions / C#
   

C#

 
General2D Array modification Pin
saud_a_k8-Jul-04 23:59
saud_a_k8-Jul-04 23:59 
GeneralRe: 2D Array modification Pin
Heath Stewart9-Jul-04 3:57
protectorHeath Stewart9-Jul-04 3:57 
GeneralRe: 2D Array modification Pin
saud_a_k12-Jul-04 18:21
saud_a_k12-Jul-04 18:21 
GeneralRe: 2D Array modification Pin
saud_a_k12-Jul-04 21:32
saud_a_k12-Jul-04 21:32 
QuestionHow to add a button in the caption bar of a window Pin
bouli8-Jul-04 22:11
bouli8-Jul-04 22:11 
AnswerRe: How to add a button in the caption bar of a window Pin
Anonymous9-Jul-04 1:37
Anonymous9-Jul-04 1:37 
GeneralRe: How to add a button in the caption bar of a window Pin
saud_a_k9-Jul-04 2:02
saud_a_k9-Jul-04 2:02 
AnswerRe: How to add a button in the caption bar of a window Pin
Heath Stewart9-Jul-04 3:52
protectorHeath Stewart9-Jul-04 3:52 
bouli wrote:
I could do this in MFC, but Windows.Forms is so different

Actually, it's not. Underneath it all, Windows Forms makes native API calls and sends or posts, and handles window messages.

The only difference is that not all the APIs, structs, and defs are defined in headers (you can't use headers), so you must P/Invoke the native APIs and define the structs and constants you need.

For example, in your form you want to add a caption for, extend the Form class, override WndProc, and handle the WM_NCPAINT (0x0085) message in a similar fashion as you would with MFC. There's your starting point.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: How to add a button in the caption bar of a window Pin
bouli9-Jul-04 3:56
bouli9-Jul-04 3:56 
GeneralRe: How to add a button in the caption bar of a window Pin
Heath Stewart9-Jul-04 4:38
protectorHeath Stewart9-Jul-04 4:38 
GeneralRe: How to add a button in the caption bar of a window Pin
bouli9-Jul-04 4:45
bouli9-Jul-04 4:45 
GeneralSending multiple values(Array) from one page to other Pin
Member 11955128-Jul-04 21:14
Member 11955128-Jul-04 21:14 
GeneralRe: Sending multiple values(Array) from one page to other Pin
Heath Stewart9-Jul-04 3:29
protectorHeath Stewart9-Jul-04 3:29 
GeneralDynamiclly naming variables Pin
saud_a_k8-Jul-04 20:45
saud_a_k8-Jul-04 20:45 
GeneralRe: Dynamiclly naming variables Pin
etfintnick8-Jul-04 23:04
etfintnick8-Jul-04 23:04 
GeneralRe: Dynamiclly naming variables Pin
etfintnick8-Jul-04 23:06
etfintnick8-Jul-04 23:06 
GeneralRe: Dynamiclly naming variables Pin
etfintnick8-Jul-04 23:08
etfintnick8-Jul-04 23:08 
GeneralRe: Dynamiclly naming variables Pin
saud_a_k8-Jul-04 23:34
saud_a_k8-Jul-04 23:34 
GeneralRe: Dynamiclly naming variables Pin
Stefan Troschuetz8-Jul-04 23:57
Stefan Troschuetz8-Jul-04 23:57 
GeneralRe: Dynamiclly naming variables Pin
saud_a_k9-Jul-04 0:17
saud_a_k9-Jul-04 0:17 
GeneralRe: Dynamiclly naming variables Pin
saud_a_k9-Jul-04 0:20
saud_a_k9-Jul-04 0:20 
GeneralRe: Dynamiclly naming variables Pin
Stefan Troschuetz9-Jul-04 1:07
Stefan Troschuetz9-Jul-04 1:07 
GeneralRe: Dynamiclly naming variables Pin
saud_a_k9-Jul-04 1:19
saud_a_k9-Jul-04 1:19 
GeneralRe: Dynamiclly naming variables Pin
Stefan Troschuetz9-Jul-04 1:43
Stefan Troschuetz9-Jul-04 1:43 
GeneralRe: Dynamiclly naming variables Pin
Heath Stewart9-Jul-04 3:08
protectorHeath Stewart9-Jul-04 3:08 

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.