Hinnerk,
I would handle the MouseMove or MouseEnter & MouseLeave event for each
control, If the mouse moves over the control update the status text,
otherwise clear it.
I would consider creating an ExtenderProvider to implement this. (Implement
the System.ComponentModel.IExtenderProvider interface). Which allows you to
put the StatusBarExtenderProvider component on your form, then this
component adds properties to all your other controls. Internally
StatusBarExtenderProvider maintains a collections of each control with the
properties, it would also handle the MouseMove event (or MouseEnter &
MouseLeave) for each control, updating the Status Bar as needed.
StatusBarExtenderProvider can use AddHandler & RemoveHandler to attach event
handlers to the controls being tracked.
I do not have a clear example handy right now.
ErrorProvider, HelpProvider and ToolTip are examples of Extender Providers
available in the Framework.
Hope this helps
Jay
[quoted text, click to view] "Hinnerk Feldwisch" <dielisten@yahoo.de> wrote in message
news:u6bGFFUfDHA.2484@TK2MSFTNGP09.phx.gbl...
> Hello,
>
> I'm writing a program with VB.NET at the moment, and want to have an easy
> possibility to display a help string in the status bar when the user
places
> the mouse over a control.
> I know that there was an easy way some years ago, when I used Delphi 3 or
VB
> 4; but I didn't find it anymore - is it still possible?
>
> Then I tried to filter a appropiate message from the message queue, and
> installed a filter with application.addMessagefilter() (or similar). I
also
> overwrote the WndProc- procedure. But I'm not sure which WM I shall
filter;
> I heard about WM_SETCURSOR, this should be called not for the controls but
> for the parent form.
> This doesn't work though...
>
> Any help?
> Thank you very much!,
> Hinnerk
>
>