简体   繁体   中英

Using Winform TabControl

Is it good or bad practise to use tabs in winforms?

Do you need to preform anything specail to pass objects between them?

You can use Tab Control. Its totally safe.

You do not need anything special to pass value between tabs.

They are used when you want to open multiple forms in a single control that is your tabcontrol.

Those forms can be opened as Child/Content in Tab items. Each and every one of them will maintain its state and value even if you switch from one tab to another.

Tabs are a suitable tool for grouping and organizing controls on a form. They can help de-clutter a busy form.

You don't have to do anything special to pass data between controls on different tabs, as they're all on the same form.

It depends on the requirement, Tabs are good to group related controls, but sometimes it does not provide a very good user experience by hiding out some controls.

You don have to do any thing to pass information in between them and you can access any control with in a tab, and controls in any tab can access from variables in which they are hosted.

TabControl is a good control if you want to sort and avoid multiples new forms. If you want to pass data between tabs, there's no problem because it's one control for multiple tabs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM