473,385 Members | 1,338 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,385 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 22430
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"...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.