C++ control textBox of Form1 and Form2
-
Hi. I send a "TEXT" from Form1 to Form2. Sometimes it's good, sometimes it's not good. When you send "TEXT" from Form1 to Form2, TEXT disappears from Form2.show. ---------------------------------------------
Form1.h
private Burron1()
{
Form2::Form fm;
fm.viewText();
}
Form2.h
namespace Form {
public class Form
{
Form2()
{
void viewText();
}
}
}void viewText()
{
textBox1->Text="TEXT";
}Only when Text's Form, no problem. I cann't see other , only did mySql. This disappeared the "TEXT". textBox->Text is a Empty. I sent "TEXT" can't look for any.
I want to know how to make the appearing thing.
Say me , please.
Thank you. -
Hi. I send a "TEXT" from Form1 to Form2. Sometimes it's good, sometimes it's not good. When you send "TEXT" from Form1 to Form2, TEXT disappears from Form2.show. ---------------------------------------------
Form1.h
private Burron1()
{
Form2::Form fm;
fm.viewText();
}
Form2.h
namespace Form {
public class Form
{
Form2()
{
void viewText();
}
}
}void viewText()
{
textBox1->Text="TEXT";
}Only when Text's Form, no problem. I cann't see other , only did mySql. This disappeared the "TEXT". textBox->Text is a Empty. I sent "TEXT" can't look for any.
I want to know how to make the appearing thing.
Say me , please.
Thank you. -
Please do not post the same question in multiple forums. I already answered this in the C++ forum.
Okay Thank you I'm got it. Solved about it. thank you