Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Vb.net] ToolTips

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
I'm C.H.
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Dec 2006
Posts: 1000
Location: Sweden

PostPosted: Sun Jan 18, 2009 10:39 am    Post subject: [Vb.net] ToolTips Reply with quote

Well, I already know how to make tooltips appear on buttons, textboxes etc... but I need to know how to make them appear on ToolStripStatusLabel1. If I try doing:

Code:
ToolTip1.SetToolTip(ToolStripStatusLabel1.Text, "blahblahblahb etc.....")


It says:
Quote:
Value of type 'String' cannot be converted to 'System.Windows.Forms.Control'.


Since the ToolStripStatusLabel's source lies in System.Windows.Forms.ToolStripStatusLabel, Maby you can change the source? If not, how can I make it work?

_________________
Omg. I need something to do...

*-* My Flash Trainers *-*

*-* My Mouse Vac Tut *-*



Last edited by I'm C.H. on Sun Jan 18, 2009 12:03 pm; edited 2 times in total
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Sun Jan 18, 2009 11:14 am    Post subject: Reply with quote

Code:
Public Sub SetToolTip ( _
    control As Control, _
    caption As String _
)


ToolStripStatusLabel1 is what?

The first parameter is which control will activate this ToolTip, so instead it would be:

ToolTip1.SetToolTip(Button1, "This text pops up on button1...");

And Button1 is just a name, use it for whatever control name you are using.

_________________
Back to top
View user's profile Send private message
I'm C.H.
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Dec 2006
Posts: 1000
Location: Sweden

PostPosted: Sun Jan 18, 2009 11:50 am    Post subject: Reply with quote

Okay, so I have it like this:
Code:
Private Sub VarLabel_MouseMove(ByVal sender As Object, ByVal e As System.EventArgs) Handles VarLabel.MouseMove
ToolTip1.SetToolTip(VarLabel, "Variable")
End Sub
but I still get the same error message. It doesn't get the VarLabel.

EDIT: One thing I didn't notice before was ToolTip on ToolTip1 at properties. It works fine on all other controls exept the Toolstrip one. It doesn't show there.

_________________
Omg. I need something to do...

*-* My Flash Trainers *-*

*-* My Mouse Vac Tut *-*

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites