![]() ![]() I consider the possibility to specify the coordinates an advantage. If no more ideas will show up i guess i'l go with richtextbox. Well I thought about that Thanks for it anyway, but just wodering isn't there any simplier way to this Because with rtf i need to specify coordinates where to show a tooltip on each LISTVIEW item when i hover over it. So instead of the limited Tooltip, you could have a fancy RichTextBox that is Visible on the MouseHover event of your control, and Visible=False for the MouseLeave event. Otherwise you will have to make it in code. If you already have the text formatting, you could make an rtf file in Word and Load it into the Box: RichTextBox1.LoadFile("c:\subdir\RichTextFile2.rtf"). You can make use of Bold, Colors, highlighting etc, and also select the screen position (Left, top). The only text-box that seems to give much text formatting is the RichTextBox. Just set the font before DrawString in OnPaint of the FloatControl like this Thank you for your answers and time. and so on Is there any way to make part of my tooltip bold Name: John, Last Name. Well it's not a major problem but it visually would look better I have a text line wich cannot fit in control wich i am displaying it so when mouse hovers over that text it is shown in a tooltip Text exmp: Name: John ,Last Name. ![]() Posted: Visual Basic Language, CUSTOM tooltips in VB.NET (bold, italic. Index ‹ Visual Basic ‹ Visual Basic Language CUSTOM tooltips in VB.NET (bold, italic. For instance, to italicise and underline some text, the following code will work: .Italic = True For instance, this will remove the bold format from the text string: .Bold = Falseįinally, multiple formats can be stacked in the script. Likewise, to remove a format the parameter can be switched to “false”. To double strikethrough: .DoubleStrikethrough = True. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |