Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / September 2005

Tip: Looking for answers? Try searching our database.

3rd Try:  Help Button functionality

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Keith - 07 Sep 2005 22:34 GMT
OK,

Since no one can tell me if you can have the Help Button AND Min/Max in the
control box (or why not) I'll just accept that you can't, and that I have to
use a toolbar button.

My question now is how can I get equivalent functionality from this toolbar
button?  Meaning I want my button to behave as if it were the HelpButton in
the title bar: Help cursor, integration with the HelpProvider, context
sensitivity, etc.

Is this possible, and if so, how?

Keith
Herfried K. Wagner [MVP] - 08 Sep 2005 12:54 GMT
"Keith" <keith@alh.com> schrieb:
> Since no one can tell me if you can have the Help Button AND Min/Max in
> the control box (or why not)

I remember I already explained the reasons why that's not supported.
Typically the main window has a "Help" -> "What's this help..." menu.

> My question now is how can I get equivalent functionality from this
> toolbar button?  Meaning I want my button to behave as if it were the
> HelpButton in the title bar: Help cursor, integration with the
> HelpProvider, context sensitivity, etc.

\\\
Private Declare Auto Function PostMessage Lib "user32.dll" ( _
   ByVal hwnd As IntPtr, _
   ByVal wMsg As Int32, _
   ByVal wParam As Int32, _
   ByVal lParam As Int32 _
) As Int32

Private Const WM_SYSCOMMAND As Int32 = &H112

Private Const SC_CONTEXTHELP As Int32 = &HF180&
.
.
.
Public Sub WhatsThisHelp(ByVal Form As Form)
   PostMessage( _
       Form.Handle, _
       WM_SYSCOMMAND, _
       SC_CONTEXTHELP, _
       0 _
   )
End Sub
///

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>

Keith - 08 Sep 2005 17:56 GMT
Herfried,

Thank you very much for your extremely helpful response.  This is exactly
what I needed.

Thanks again!

Keith

> "Keith" <keith@alh.com> schrieb:
>> Since no one can tell me if you can have the Help Button AND Min/Max in
[quoted text clipped - 31 lines]
> End Sub
> ///

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.