"Subforms" associated with tree view in VB

Posted by knomdeguerre on Stack Overflow See other posts from Stack Overflow or by knomdeguerre
Published on 2010-05-14T02:40:48Z Indexed on 2010/05/14 2:44 UTC
Read the original article Hit count: 234

Filed under:
|
|

I am using VB Express 2008 to demonstrate my ideas for an improved UI for an existing product for my colleagues at work.

The current UI has a certain page with ten tabs, allowing the user to define up to ten "things". The available choices for each of the ten "things" are all the same. On each of the ten tabs, there is a checkbox to enable that definition. Generally, a user will never use more than 5 or 6 unique definitions, the rest will remain disabled.

So far, my prototype has a tree view control with one branch to contain this list of definitions, Add and Delete buttons. My idea is: there is one sub-branch to start with (corresponding to the first tab in the current UI); if the user wants addtional definitions, they click Add and other branches are added to the tree view, up to maximum of ten.

I think I should be able to create a "class" that has a sub-UI (like a sub-form in Access) along with behavior code, that can be instantiated with each press of the Add button; each instantiation's settings can be set independently and is displayed in the main UI form )in a panel or frame) when selected in the tree view. For example, suppose the user Adds to make a total of three definitions: the tree view now has three sub-branches, each of which presents the same sub-UI with settings that can be set specific to the selected sub-branch. I'm sure it's possible but not sure how to do it.

I know a comprehensive "answer" might be complicated and long, but I may just need some quick hints to get underway - don't be shy! Thanks in advance!

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about gui