Is there some way to display a text message when mouse event occurs in
the bounding rectangle of the button or Icon. Just to give clear
information to the user for that button and Icon.

Re: Can we add text message with a botton ? by Philip

Philip
Fri Jan 13 08:26:48 CST 2006

You mean a tooltip?

Thank you, sir. I had quite forgotten that tooltips were not supported in
CF1, but it is seems that they are supported in CF2.

But tooltips are only supported for the toolbar <smiley type="sheepish
grin"/>.

<neeta_vas@yahoo.com> wrote in message
news:1137098976.827833.49360@o13g2000cwo.googlegroups.com...
> Is there some way to display a text message when mouse event occurs in
> the bounding rectangle of the button or Icon. Just to give clear
> information to the user for that button and Icon.
>



Re: Can we add text message with a botton ? by MSenne

MSenne
Fri Jan 13 09:03:42 CST 2006

Yes, you can probably do this by detecting the desired Mouse* event in
a Form and checking the "mouse" position coordinates. Check the
MouseEventArgs in your event handler and compare with the coordinates
of your control to find out if it's had a mouse event triggered inside
its bounds.

Check the Form class members for events you can handle:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsformmemberstopic.asp

I'm pretty sure that stuff is all compatible with the .NET CF but the
MSDN lib never says if Event Handlers are CF compatible.
Good luck!
-MSenne


Re: Can we add text message with a botton ? by Philip

Philip
Fri Jan 13 09:49:25 CST 2006

Yes, mouse events for forms *do* work in .Net CF 1 and 2. But I doubt if
this suggestion would.

"MSenne" <yoat42@gmail.com> wrote in message
news:1137164622.547996.212780@f14g2000cwb.googlegroups.com...
> Yes, you can probably do this by detecting the desired Mouse* event in
> a Form and checking the "mouse" position coordinates. Check the
> MouseEventArgs in your event handler and compare with the coordinates
> of your control to find out if it's had a mouse event triggered inside
> its bounds.
>
> Check the Form class members for events you can handle:
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsformmemberstopic.asp
>
> I'm pretty sure that stuff is all compatible with the .NET CF but the
> MSDN lib never says if Event Handlers are CF compatible.
> Good luck!
> -MSenne
>