C
Carlo Goretti
Guest
Hey!
Need some help.. Im trying to change the textbox.text with some text that i get from another form.. But i dont get it to work.. Any Ideas?
Code down below is what i want to put into the textbox.
if (lstChckBox.Checked == true)
{
string test = appointments.Items.Body.ToString();
int StartIndex = test.IndexOf("mailto:") + 7;
int LängdIndex = test.IndexOf(".se\"") - StartIndex + 3;
string test3 = test.Substring(StartIndex, LängdIndex);
Form1 test2 = new Form1();
//test2.EmailToTextGetSet = test3;
test2.EmailToTextGetSet = "test1";
Hide();
MessageBox.Show(test3);
}
And this is the code in the other form..:
public string EmailToTextGetSet
{
get
{
return EmailToTxt.Text;
}
set
{
KortLänkProdTxt.Text = value;
EmailToTxt.Text = value;
}
}
Continue reading...
Need some help.. Im trying to change the textbox.text with some text that i get from another form.. But i dont get it to work.. Any Ideas?
Code down below is what i want to put into the textbox.
if (lstChckBox.Checked == true)
{
string test = appointments.Items.Body.ToString();
int StartIndex = test.IndexOf("mailto:") + 7;
int LängdIndex = test.IndexOf(".se\"") - StartIndex + 3;
string test3 = test.Substring(StartIndex, LängdIndex);
Form1 test2 = new Form1();
//test2.EmailToTextGetSet = test3;
test2.EmailToTextGetSet = "test1";
Hide();
MessageBox.Show(test3);
}
And this is the code in the other form..:
public string EmailToTextGetSet
{
get
{
return EmailToTxt.Text;
}
set
{
KortLänkProdTxt.Text = value;
EmailToTxt.Text = value;
}
}
Continue reading...