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?

Re: How to create a form? by Herfried

Herfried
Mon Jan 09 09:02:38 CST 2006

"Ilya Dyoshin" <zipito@mail.ru> schrieb:
> 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();
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>