How to create a form?

  • Thread starter Thread starter Ilya Dyoshin
  • Start date Start date
I

Ilya Dyoshin

Hi,

I'm writting a system, in which I need to create my own dialog. It is
activated by ButtonClick event.

I've tried to create another one form, and then in event handler I've wrote

Application::Run(gcnew myDialog());

But as you know, this makes an error compiling.

How can I create another one form in my WindowsForms application, which
is activated by pressing a button in another form?
 
Ilya Dyoshin said:
I'm writting a system, in which I need to create my own dialog. It is
activated by ButtonClick event.

I've tried to create another one form, and then in event handler I've
wrote

Application::Run(gcnew myDialog());

But as you know, this makes an error compiling.

How can I create another one form in my WindowsForms application, which is
activated by pressing a button in another form?

\\\
(gcnew Form2)->Show();
///
 

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

Back
Top