473,473 Members | 2,207 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to show Tooltip for UserControl

Hi All,
I have developed my own user control and created custom mouse enter event.
I need to show ToolTip on mouse enter event.
I have written following code for that, but it doesn't show ToolTip.

Private Sub MyControl_MouseEnter()
Dim myToolTip as New ToolTip()
myToolTip.SetToolTip(myControl,"Hello")
End Sub

I checked above by using,

msgbox (myToolTip.GetToolTip(myControl))

It gives "Hello" message box, but why above code doesn't show the ToolTip?

Any help will be appreciated.

Thanks in advance
Sakharam Phapale
Nov 21 '05 #1
1 6586
ToolTip1.SetToolTip(Me.TextBox1, "Hello")
--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
"Sakharam Phapale" <sp******@annetsite.com> wrote in message
news:ut**************@TK2MSFTNGP10.phx.gbl...
Hi All,
I have developed my own user control and created custom mouse enter event.
I need to show ToolTip on mouse enter event.
I have written following code for that, but it doesn't show ToolTip.

Private Sub MyControl_MouseEnter()
Dim myToolTip as New ToolTip()
myToolTip.SetToolTip(myControl,"Hello")
End Sub

I checked above by using,

msgbox (myToolTip.GetToolTip(myControl))

It gives "Hello" message box, but why above code doesn't show the ToolTip?

Any help will be appreciated.

Thanks in advance
Sakharam Phapale

Nov 21 '05 #2

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

Similar topics

0
by: Brian Kitt | last post by:
I have an application that has several UserControls, and I can't seem to get ToolTips to work with them. The ToolTips work fine with Windows Controls, so I know I have them set up properly. The...
4
by: Henry Padilla | last post by:
I am making a UserControl that is entirely taken up by Labels. I have found a way to pass the Click even to the outside (I have the same handler for each label.click and that raises a...
8
by: Rachel Suddeth | last post by:
I have an application where some forms have many (say 100) UserControls on them (each of which contain a label, an image, and a data entry control), and each UserControl has a ToolTip provider...
3
by: RJN | last post by:
Hi The texts in the dropdown are too long and the width is not sufficient to show the entire text. Increasing the width is not an option. Is there a way to show the selected item text as a...
2
by: tony | last post by:
I initally posted this July 29, 05 and did not get any replies: I have a Windows Forms UserControl that runs in a thick client. I am now deploying it within an IE web page. Everything works fine,...
0
by: NvrBst | last post by:
Hello. I'm trying to display a tooltip to an external window. I have a wrapper class public class WindowWrapper : System.Windows.Forms.IWin32Window { public WindowWrapper(IntPtr handle) {...
0
by: Lucian Wischik | last post by:
I'm using ToolTip.Show(x,y,..) to show my balloon-style tooltip at a specified coordinate. Most of the time it works fine and the "tip" of the balloon points exactly to my specified (x,y)...
2
by: Paul E Collins | last post by:
How can I show a tooltip programmatically? I want to make it appear over a particular control at the specific time I choose, and not rely on the user's mouse movements. I don't mind using some...
4
by: Pieter | last post by:
Hi, Using VB.NET 2.0, Windows Forms. I want the ToolTip to be shown on every TextBox, ComboBox and DataGridView continuously, and show the contence of these controls. Is there a way to add the...
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,...
1
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...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.