3rd Try: Help Button functionality

K

Keith

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
 
H

Herfried K. Wagner [MVP]

Keith said:
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
///
 
K

Keith

Herfried,

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

Thanks again!

Keith
 

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