"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
> ///