Home All Groups Group Topic Archive Search About

Add question mark to title bar

Author
20 Sep 2007 3:14 PM
Carlos Sosa Albert
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.

--
____________________________
Carlos Sosa Albert

Author
21 Sep 2007 3:23 PM
Herfried K. Wagner [MVP]
"Carlos Sosa Albert" <betun (arroba) hotmail> schrieb:
> 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'.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
Author
21 Sep 2007 6:46 PM
Carlos Sosa Albert
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)?

--
____________________________
Carlos Sosa Albert


Show quote
"Herfried K. Wagner [MVP]" wrote:

> "Carlos Sosa Albert" <betun (arroba) hotmail> schrieb:
> > 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'.
>
> --
>  M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
>  V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
>
>
Author
21 Sep 2007 7:32 PM
Herfried K. Wagner [MVP]
"Carlos Sosa Albert" <betun (arroba) hotmail> schrieb:
> 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.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
Author
25 Sep 2007 3:10 PM
Carlos Sosa Albert
Thanks a lot, Herfried!

--
____________________________
Carlos Sosa Albert


Show quote
"Herfried K. Wagner [MVP]" wrote:

> "Carlos Sosa Albert" <betun (arroba) hotmail> schrieb:
> > 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.
>
> --
>  M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
>  V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
>
>

AddThis Social Bookmark Button