i used to work on c++builder but now iam trying to learn vc++ so to be able to controll things easier(i think)
here is my problem i designed a form with several buttons
and i just want a button to display the second form so i have in summary
only code concering the button)
Btn1 = new Button();
Btn1->Text = S"Gracie Method";
Btn1->Size = System:
rawing::Size(60,30);
Btn1->Location = Point(30,60);
Btn1->Click += new EventHandler(this, &SingleImage::Btn1_Click);
Controls->Add(Btn1);
private:
void Btn1_Click(Object* pSender, EventArgs* pArgs)
{
}
void Btn1_Click(Object* pSender, EventArgs* pArgs)
{
GracieForm::Show;
}
the form isn't displayed what am i doing wrong
here is my problem i designed a form with several buttons
and i just want a button to display the second form so i have in summary
Btn1 = new Button();
Btn1->Text = S"Gracie Method";
Btn1->Size = System:
Btn1->Location = Point(30,60);
Btn1->Click += new EventHandler(this, &SingleImage::Btn1_Click);
Controls->Add(Btn1);
private:
void Btn1_Click(Object* pSender, EventArgs* pArgs)
{
}
void Btn1_Click(Object* pSender, EventArgs* pArgs)
{
GracieForm::Show;
}
the form isn't displayed what am i doing wrong