Posted: Sun Jul 20, 2008 9:05 pm Post subject: Controll form 1 from form 2 issue...
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...
Joined: 14 Jun 2007 Posts: 456 Location: The Netherlands
Posted: Tue Jul 22, 2008 12:57 am Post subject:
(You mean in VB.Net right?)
If you have Form1 and Form2 with both a textbox in it you could do:
(From form 1 Form2.Textbox1.Text = "Hello"
(From form 2 Textbox1.Text = "Hello"
(From form 2 Form1.Textbox1.Text = Textbox1.Text
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