By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,344 Members | 1,114 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,344 IT Pros & Developers. It's quick & easy.

Tooltip message assignment

P: n/a
I'm trying to dynamically assign tooltips like this...

dim MyVariableDoesntWork as string = "This stinks"
'dn1 is a label control

Private Sub dn1_Enter(ByVal sender As Object, ByVal e As
System.EventArgs) Handles dn1.Enter, dn2.enter....

dim lbl as label
lbl = ctype(sender, label)
tooltip1.settooltip(lbl, MyVariableDoesntWork)

Can this work?
What am I doing wrong...?

-Peter
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
* pe***@mclinn.com (Peter) scripsit:
dim MyVariableDoesntWork as string = "This stinks"
'dn1 is a label control

Private Sub dn1_Enter(ByVal sender As Object, ByVal e As
System.EventArgs) Handles dn1.Enter, dn2.enter....

dim lbl as label
lbl = ctype(sender, label)
tooltip1.settooltip(lbl, MyVariableDoesntWork)

Can this work?
What am I doing wrong...?


That should work.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.