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 - converting problem - need help

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
asianking2
How do I cheat?
Reputation: 0

Joined: 26 Jun 2008
Posts: 9

PostPosted: Mon Jul 07, 2008 3:45 pm    Post subject: VB - converting problem - need help Reply with quote

Private Sub ManaToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles HealthToolStripMenuItem.Click
Call Flash.SetVariable("health", textbox1)
End Sub


Error 3 Value of type 'System.Windows.Forms.ToolStripTextBox' cannot be converted to 'String'.

-----------------------------------------------------------------------------------

can this work other way around instead of having to convert to string? or is there a way i can convert it to string?
Back to top
View user's profile Send private message
Typhoon808
Expert Cheater
Reputation: 0

Joined: 27 Mar 2008
Posts: 175
Location: Wales

PostPosted: Mon Jul 07, 2008 4:58 pm    Post subject: Reply with quote

Call Flash.SetVariable("health", textbox1.text)
Back to top
View user's profile Send private message
merlin22
Master Cheater
Ban
Reputation: 0

Joined: 29 Mar 2008
Posts: 267

PostPosted: Mon Jul 07, 2008 4:58 pm    Post subject: Reply with quote

What exactly are you trying to do with all that?

is this what you mean?

Code:

Private Sub Command1_Click()
Call swf.SetVariable("health", textbox1)
End Sub



edit:
Typhoon808 wrote:
Call Flash.SetVariable("health", textbox1.text)


You dont have to write the .text part.
Back to top
View user's profile Send private message AIM Address
asianking2
How do I cheat?
Reputation: 0

Joined: 26 Jun 2008
Posts: 9

PostPosted: Mon Jul 07, 2008 9:13 pm    Post subject: Reply with quote

got it!

work with SetVariable ("health", textbox1.text)

thanks a lot guys...
Back to top
View user's profile Send private message
AndrewMan
Grandmaster Cheater Supreme
Reputation: 0

Joined: 01 Aug 2007
Posts: 1257

PostPosted: Mon Jul 07, 2008 9:45 pm    Post subject: Reply with quote

merlin22 wrote:
What exactly are you trying to do with all that?

is this what you mean?

Code:

Private Sub Command1_Click()
Call swf.SetVariable("health", textbox1)
End Sub



edit:
Typhoon808 wrote:
Call Flash.SetVariable("health", textbox1.text)


You dont have to write the .text part.


yes you do if you're using .Net
that guy is probably using VB 2008.

_________________
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