Add question mark to title bar

G

Guest

Hi guys,

I'm working with a small Win App (.NET 2.0, C#) and I was wondering:

Is there a way to add the typical question mark to the title bar of my app,
and then link that question mark to an "About" box? (no help)

I've been "googling" it but didn't find the solution...

Thanks a lot.
 
H

Herfried K. Wagner [MVP]

Carlos Sosa Albert said:
I'm working with a small Win App (.NET 2.0, C#) and I was wondering:

Is there a way to add the typical question mark to the title bar of my
app,
and then link that question mark to an "About" box? (no help)

Set the form's 'HelpButton' property to 'True' and its 'MaximizeButton' and
'MinimizeButton' properties to 'False'.
 
G

Guest

Thanks Herfried! That worked like a charm.

And do you happen to know how can I link that question mark to an specific
action (instead of help)?
 
H

Herfried K. Wagner [MVP]

Carlos Sosa Albert said:
And do you happen to know how can I link that question mark to an specific
action (instead of help)?

Maybe listening for 'WM_SYSCOMMAND' + 'SC_CONTEXTHELP' in the form's
'WndProc' will do the trick.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top