开发者

The proper way to use dynamic tabpages in C#

I am developing a simple software in .NET C# for blind people that includes a phonebook.

The phonebook consists of a form with tabs in it (each tab represent a group i.e. family, friends , work etc.) and in each tab a listview that will contain the contacts in that group. The groups are of course dynamic and user made.

My question is what is considered the proper way to handle the tabs? To create a new listview fo开发者_如何转开发r every tab or one for all of them? how to handle the different list views? should I redefine every time the characteristics of the listview for every tab?

Would appreciate an example.

Thanks.


The best way would be to have one listview (your main list view) and then a tabcontrol which will be the host for your tabs (this is called tabbed MDI interface) . you can create separate forms for each one of your main entities (family,friend,work,etc.) and then based on the clicked item in the main list view you can open (or activate) related tab in the the main tabcontrol .

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜