A
A
andoral2018-09-07 20:00:18
.NET
andoral, 2018-09-07 20:00:18

Is it possible to change the main form at runtime?

A simple example is an authorization form, after which a work form should be launched.
Will I have to use a third form?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Peter, 2018-09-07
@andoral

You can create as many forms as you want and manipulate as you like. And you can do everything on one. There is such a component as Panel to group components on it and change visibility when necessary.

A
Artem Voronov, 2018-09-07
@newross

You can put everything in separate tabs TabControl and hide the TabBar. But why?

L
leremin, 2018-09-08
@leremin

I needed this myself. I made the display of any authorization windows in Main() through form.ShowDialog(), and then the real main form through Application.Start(form).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question