473,396 Members | 2,004 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,396 software developers and data experts.

hover text on command buttons...

Using vb.net 2005. Is there an easy way to allow text to be displayed when
the user hovers on a command button - similiar to what you get when using a
toobar menu strip?

Thanks Brad
Jul 25 '07 #1
6 22433
On Jul 25, 5:54 pm, "Brad Pears" <br...@truenorthloghomes.comwrote:
Using vb.net 2005. Is there an easy way to allow text to be displayed when
the user hovers on a command button - similiar to what you get when using a
toobar menu strip?

Thanks Brad
You mean a tooltip?

Thanks,

Seth Rowe

Jul 25 '07 #2
Just Drag a Tooltip from the toolbox on you windows form and write the
following code in code behind file.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.MouseHover
ToolTip1.SetToolTip(Button1, "sometext")
End Sub

On Jul 25, 5:54 pm, "Brad Pears" <br...@truenorthloghomes.comwrote:
Using vb.net 2005. Is there an easy way to allow text to be displayed when
the user hovers on a command button - similiar to what you get when using a
toobar menu strip?

Thanks Brad

Jul 26 '07 #3
put this in form load:

' Create the ToolTip and associate with the Form container.
Dim toolTip1 As New ToolTip

' Set up the delays for the ToolTip.
toolTip1.AutoPopDelay = 5000
toolTip1.InitialDelay = 1000
toolTip1.ReshowDelay = 500
' Force the ToolTip text to be displayed whether or not the form is
active.
toolTip1.ShowAlways = True
'main form
toolTip1.SetToolTip(ButtonName, "Text to put in Tool Tip Help")
"Brad Pears" wrote:
Using vb.net 2005. Is there an easy way to allow text to be displayed when
the user hovers on a command button - similiar to what you get when using a
toobar menu strip?

Thanks Brad
Jul 26 '07 #4
Normally, if you take a Tooltip object from the toolbox and you create
one on your form (in the object bar, in the lowest part of the screen)
all your controls on that form should have a new property in the
"Misc" section, which is the text to be displayed by the tooltip.

To configure the tooltips display time etc, just modify the Tooltip
object's properties...

This exists in VS2003... I can only guess that MS didn't delete the
concept in VS2005, also, what Tracks and Shawn.Bower said works, but
since the whole tooltip thing is usable without coding, why not save
the time ?

Hope it helps

Jul 26 '07 #5
Sorry - yes that is exactly what I mean!

Brad
"rowe_newsgroups" <ro********@yahoo.comwrote in message
news:11**********************@j4g2000prf.googlegro ups.com...
On Jul 25, 5:54 pm, "Brad Pears" <br...@truenorthloghomes.comwrote:
>Using vb.net 2005. Is there an easy way to allow text to be displayed
when
the user hovers on a command button - similiar to what you get when using
a
toobar menu strip?

Thanks Brad

You mean a tooltip?

Thanks,

Seth Rowe

Jul 26 '07 #6
Perfect. It works like a top. I didn;t even notice the tooltip control in
the toolbox!!!

Thanks, Brad

"Kysonel" <bo*******@gmail.comwrote in message
news:11**********************@i13g2000prf.googlegr oups.com...
Normally, if you take a Tooltip object from the toolbox and you create
one on your form (in the object bar, in the lowest part of the screen)
all your controls on that form should have a new property in the
"Misc" section, which is the text to be displayed by the tooltip.

To configure the tooltips display time etc, just modify the Tooltip
object's properties...

This exists in VS2003... I can only guess that MS didn't delete the
concept in VS2005, also, what Tracks and Shawn.Bower said works, but
since the whole tooltip thing is usable without coding, why not save
the time ?

Hope it helps

Jul 26 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Rolf Brauser | last post by:
Hi, I can´t manage to change the a.hover text color on Mac IE or Safari browsers .. If I attache textdecoration for example it matches. why is that ? ...
0
by: Kevin McLean | last post by:
I have serveral ASP web pages containing command buttons that perform different functions. This web site has been running for serveral months without any problems. I had taken a vacation and when...
8
by: Susan Bricker | last post by:
Is there a way to change the background color of command buttons? I know that I saw some VBA code somewhere that showed how to do this. I think it involved making the button transparent and then...
1
by: bjbounce2002 | last post by:
Hello, I am using forms with command buttons to close form or run action queries. The error messages such as "Null value in required field" or "duplicate value in primary key" are suppressed....
3
by: AgentX | last post by:
Is it possible to make command buttons in any color other than default gray? And can you change the text with code ? In other words instead of hard-coding the text on the button, can you display...
1
by: Martin Keeton | last post by:
I.m developing applications using VB.NET and have a number of command buttons that have images on them. When The application is run with the classic windows style look the images appear just fine but...
3
by: cmvw | last post by:
I keep getting runtime 424 error object required when tring to run program works fine untill it gets to caculate commission any assistants would be appreciated. Private Sub...
0
by: Mr. SweatyFinger | last post by:
How can i use both of these command buttons along with the default 123456 paging system? <asp:LinkButton ID="btnNext" runat="server" CommandName="Page" CommandArgument="Next" text="Next"/> ...
3
by: atiq | last post by:
I have got serveral forms where i want to use the same command buttons for each form to navigate through records. i was wondering if there is a way of achieving this without having to create all of...
2
by: Radu | last post by:
Hi. I have a page with the following html: __________________________________________________________ <h1>Dynamic Controls Test</h1> <hr /> <asp:TextBox ID="txtProduct1" Text="txtProduct 1"...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.