Very Stuck Newbie

I

Im Going Mad

Hi All,

Hope your well? Hope no one minds helping out a Newbie? Im going mad with
this. I`ve done a bit of work in Visual Basic but now moving over to
Microsoft C++. Here is my Problem:

I have 2 Forms. One Called `Images` and one Called `Main` On the Main Screen
I have a button called Images and would like to load the form called
`Images` when its click, however I just can`t seem to find anywhere where it
tells me how to do this.

Anybody point me in the right direction?

Many Thanks
IGMad .......................
 
B

Ben Voigt [C++ MVP]

Im Going Mad said:
Hi All,

Hope your well? Hope no one minds helping out a Newbie? Im going mad with
this. I`ve done a bit of work in Visual Basic but now moving over to
Microsoft C++. Here is my Problem:

I have 2 Forms. One Called `Images` and one Called `Main` On the Main
Screen I have a button called Images and would like to load the form
called `Images` when its click, however I just can`t seem to find anywhere
where it tells me how to do this.

something like:

Images^ frmImages;
private void btnImages_Click(Object^ sender, EventArgs^ e)
{
frmImages->Show();
}

and then in init code:
frmImages = gcnew Images();
btnImages->Click += gcnew EventHandler(this, &Main::btnImages_Click);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top