473,394 Members | 1,944 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,394 software developers and data experts.

Tool Tips on RichTextBox

How can I create tool tips for Richtextboxes....
this is what I am trying to do....
have a one line rich text box. When the users hovers over it, the tool tip
will display all the text in the textbox.
Also, I'd like to have like a collapse/expand function. Not sure how I
would do this. but like I said, the richtextbox would show one line of
text. If the user wants to edit or see all of the text then they would click
on the + sign to expand it. When the click off of it, it would go back to
being one line again.
Any help?
Thanks,
Brian
Mar 29 '08 #1
1 2232
Part 1 the Tooltip

Add a tooltip to the form

Private Sub RichTextBox1_MouseHover(ByVal sender As Object, ByVal e As
System.EventArgs) Handles RichTextBox1.MouseHover
ToolTip1.SetToolTip(RichTextBox1, RichTextBox1.Text)
End Sub

--
DaveG

"Brian" <bs********@community.nospamwrote in message
news:OJ**************@TK2MSFTNGP02.phx.gbl...
How can I create tool tips for Richtextboxes....
this is what I am trying to do....
have a one line rich text box. When the users hovers over it, the tool
tip will display all the text in the textbox.
Also, I'd like to have like a collapse/expand function. Not sure how I
would do this. but like I said, the richtextbox would show one line of
text. If the user wants to edit or see all of the text then they would
click on the + sign to expand it. When the click off of it, it would go
back to being one line again.
Any help?
Thanks,
Brian
Mar 29 '08 #2

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

Similar topics

8
by: gregory_may | last post by:
Is there a way to grab a "Screen Shot" that includes "Tool Tips"? I saw this code someplace, cant remember where. But it doesnt grab "Tool Tips". Is there a better way to do this in .net?...
34
by: Steve Horrillo | last post by:
Anyone know where to get a Tool Tips javascript that will pop up a little box when hovered for words that needs more explanation. I'm using Front Page BTW. -- Warmest regards, Steve...
1
by: Salad | last post by:
Win XP. A97. Anyone know why my tool tips don't display when the mouse is held over the field? If I reboot the computer the tool tips will display. A couple of days will pass and I'll check...
0
by: nouno | last post by:
I am trying to spell check a richtextbox. Through code (shown below) I save the contents of the richtextbox to a rtf file, open the rtf file in Word, spell check it, save it, and then load the ftf...
2
by: JonnyT | last post by:
I searched high and low for an answer on how to auto scroll a richtextbox and now I finally have it. Since it took me a while to get a good efficient way of doing it that didn't require focus to...
0
by: Vincent | last post by:
Dear all, I have implemented a class to export the content of RichTextBox to image in WYSISYG mode so that line breaks on the screen are the same as exported. C# Code: public struct...
9
by: James Wong | last post by:
Hi, I use the RichTextBox in my program. It will use different language in this RichTextBox (chinese and english characters), and it set the "DualFont" and use different fonts. By the way, how...
4
by: Marc | last post by:
HI, I have a set of dynamically created buttons and textbox's. Each button is linked to a textbox using the accessiblename property. I want to show a button tool tip containing the text box's...
0
by: Vimalathithan | last post by:
I just developing a editor. I have provide the options like Bold, Italic, underlin, font change, font size change. These font options are keep in with one toolstripbutton. the toolstripbar keep...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.