Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simple button function

Status
Not open for further replies.

tougo

Technical User
Sep 9, 2002
27
GB
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::Drawing::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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top