473,397 Members | 2,077 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Text, when mouse over button!!!

Hi
I'm new into vb.net - so please forgive me :-)
It's in a windows form - in visual basic 2005.
How do I make a small text be visual when the user move the mouse over a button?
In html you can do it with pictures like: <img src="pil.jpg" alt="some text" />

Best Regards
Preben, Denmark
Nov 26 '07 #1
5 6946
mzmishra
390 Expert 256MB
This can be done in simple javascript .
put one <div> tag make that visible on the on mouse over event.
Nov 26 '07 #2
Hi

Create a ToolTip Text while you mouse over your button control. You write this code in Button_MouseHover Event. Try this code as below

Expand|Select|Wrap|Line Numbers
  1. Dim tooltip As New ToolTip
  2.         tooltip.IsBalloon = True
  3.         tooltip.UseAnimation = True
  4.         tooltip.ToolTipTitle = "Title"
  5.         tooltip.SetToolTip(Button1, "Tool Tip Message ")

Hope it helps

Hi
I'm new into vb.net - so please forgive me :-)
It's in a windows form - in visual basic 2005.
How do I make a small text be visual when the user move the mouse over a button?
In html you can do it with pictures like: <img src="pil.jpg" alt="some text" />

Best Regards
Preben, Denmark
Nov 26 '07 #3
Tooltip!!!

Thank's - just what I needed :-)

Preben
Nov 26 '07 #4
Plater
7,872 Expert 4TB
You *can* add a ToolTip component to your form from the designer.
THEN every object you select will have a new property on it's page called like "ToolTip (on tooltip1):" where you can set the tooltip text to be displayed.
Instead of creating/destroying a new one each time.
Nov 26 '07 #5
Even better :-)

Preben, Denmark

You *can* add a ToolTip component to your form from the designer.
THEN every object you select will have a new property on it's page called like "ToolTip (on tooltip1):" where you can set the tooltip text to be displayed.
Instead of creating/destroying a new one each time.
Nov 26 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: mitsura | last post by:
Hi, I have included a small listing. The test program opens a panel and show a bitmap. What I want is to when the mouse is over the bitmap panel, I want to trap the left mouse click. The...
0
by: Mark Donners | last post by:
I have access 2002 database I like to fill a record field in a table with a text when i click a button I have two tables say table1 and table2. I have a form based on table1, it has a subform...
7
by: Tyron | last post by:
I need to know if the Left Button of the Mouse is clicked in the WM_NCMOUSEMOVE Notification but this Message doesnt contain the Mouse Button States as WM_MOUSEMOVE does. So how can I get them? ...
0
by: AK | last post by:
Hello, Listbox mulitselect property is set to true (extended). I am trying to implement drag and drop feature for a listbox. The drag & drop is done in the mouse move event (DoDragdrop...
13
by: James Bond | last post by:
Hello. My 80+ year old father has recently decided to get his first computer. Due to his age (and I suspect lack of playing pong as a child like I did) he lacks the manual dexterity to use a mouse...
6
by: marss | last post by:
Hi, How can I define in Firefox whether the left mouse button is pressed when I move mouse over a html element? The documentation says that "e.button == 0 for standard 'click', usually left...
5
by: kimiraikkonen | last post by:
Hi, I couldn't find a necessary class which shows when mouse hovers on a link in Webbrowser control. Think of there's a status bar(text), when mouse comes on a link, the URL must be shown in...
7
by: Barkingmadscot | last post by:
I am try to find out how to check if the mouse button is held down. The e.click =2 works, it allows me to enter the double click double. I what the single click to do some different and then...
11
by: yawnmoth | last post by:
http://www.frostjedi.com/terra/scripts/demo/onmouseup.html In Firefox, if I click in the black box and then release, I get a popup. If I click, drag the cursor, and then release, I don't....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.