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();
///
 
Back
Top