1
Developer's Corner / Writing to Form1 textbox from Form2
« on: November 20, 2011, 10:22 PM »
Umm just wondering if anyone could help me I am trying to write to form2.AutoRunCommand to Form1.Textbox to write ("AutoRunCommand initiated"); or something of the sort
Example
Sorry if its not too clear what I want I am not so good at explaining stuff
Thanks in advance for any help
Example
Spoiler
Form1
TextBox.AppendText("Program has started\n");
A .cs (NOT a Form)
public void AutoRunInitiated()
{
Form1.TextBox.AppentText("Autorun has been initiated\n");
}
A .cs (NOT a Form)
public void AnotherProcessStarts()
{
Form1.TextBox.AppentText("Another process has started\n");
}
TextBox.AppendText("Program has started\n");
A .cs (NOT a Form)
public void AutoRunInitiated()
{
Form1.TextBox.AppentText("Autorun has been initiated\n");
}
A .cs (NOT a Form)
public void AnotherProcessStarts()
{
Form1.TextBox.AppentText("Another process has started\n");
}
Sorry if its not too clear what I want I am not so good at explaining stuff
Thanks in advance for any help