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 


Controll form 1 from form 2 issue...

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
asianking
Expert Cheater
Reputation: 0

Joined: 25 Jun 2008
Posts: 109

PostPosted: Sun Jul 20, 2008 9:05 pm    Post subject: Controll form 1 from form 2 issue... Reply with quote

I have form1 and form 2... Form1, i name it Main, Form 2; Player. I have a drop down menu in form1 to open up form 2. In form 2, It's all the buttons to control form 1 variables... For instant, I want to click the health button in form 2 and it refills health in form 1 flash game.... I code public class and inherits system.windows.forms.form; no luck... help would be appreciated...
Back to top
View user's profile Send private message MSN Messenger
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Sun Jul 20, 2008 10:04 pm    Post subject: Reply with quote

Make them public. (and static if needed)

Also you should control the form you opened and not the opposite. (easier to control)

If form1 opened form2 control form2 using form1.
Back to top
View user's profile Send private message
asianking
Expert Cheater
Reputation: 0

Joined: 25 Jun 2008
Posts: 109

PostPosted: Mon Jul 21, 2008 9:16 pm    Post subject: Reply with quote

example pls... i don't understand by people talking about it...
Back to top
View user's profile Send private message MSN Messenger
tombana
Master Cheater
Reputation: 2

Joined: 14 Jun 2007
Posts: 456
Location: The Netherlands

PostPosted: Tue Jul 22, 2008 12:57 am    Post subject: Reply with quote

(You mean in VB.Net right?)
If you have Form1 and Form2 with both a textbox in it you could do:
(From form 1Smile Form2.Textbox1.Text = "Hello"
(From form 2Smile Textbox1.Text = "Hello"
(From form 2Smile Form1.Textbox1.Text = Textbox1.Text
Back to top
View user's profile Send private message
Typhoon808
Expert Cheater
Reputation: 0

Joined: 27 Mar 2008
Posts: 175
Location: Wales

PostPosted: Tue Jul 22, 2008 5:48 am    Post subject: Reply with quote

A google search for "global variables in vb.net" brings up loads of answers!
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