One window, several views (VB.Net)

I read about MDI applications, but that is not what I want. I would like to have one window (without child windows) that can have multiple sets of content. For example: I want to have a set of tables and text fields for storing information for an object (for example, a person). This person has several subitems. I want to have a set of tables and text fields for these subitems in my main form. But I do not want both tables and text fields of these two objects to be displayed simultaneously in both cases.

I hope you understand what I mean (I'm German, and I really don't know how to describe my wishes in English). Hope someone can give me some advice ...

0
source share
2 answers

I think you want to put your controls in a panel, and then show or hide the panel accordingly. Here is an example: http://www.mindstick.com/Articles/561eedef-170f-4ccc-98bb-efa4ee97ccdf/?Panel%20Control%20in%20VB.Net

0
source

Of course, you can use TabControl, but if you don’t like what I will do, build each β€œview” as a custom control, which is the only control on the form. Then just swap the entire control as needed.

+1
source

Source: https://habr.com/ru/post/1382387/


All Articles