all groups > vb.net controls > may 2007 >
You're in the

vb.net controls

group:

How do I get the functionality of subforms...without subforms?


How do I get the functionality of subforms...without subforms? Travis.Box NO[at]SPAM gmail.com
5/16/2007 8:15:45 AM
vb.net controls:
Hey all,
I've had a lot of experience in the past with creating MS Access
databases with lots of userforms and functionality. Some of the
userforms contained subforms that I primarily used to offer different
options for the user to perform. In other words, the forms would
contain a drop-down list of differenct groups that the user could run
reports about and when the user selected something from that drop-down
list, then the subform's source would automatically change to a form
that had reports that could be run on that group of people.

I'm in the process of building a software front-end in Visual Basic
2005 that will access databases in several different SQL servers. The
primary reason that I'm building it in Visual Basic 2005 is because I
want users to be able to access the data and reports wihtout having MS
Access installed on their computers. Inside my main form I want to
have an area where I can automatically show data fields and command
options (combo boxes, buttons, etc) based on the option that the user
selects from the main menu bar up at the top of the form, and I want
to do this without making a seperate window pop up, i.e. everything
happens in one window.

I'm not sure how this needs to be done. Do I set up a class of
objects for each of the main menu options and just make them visible/
hidden based on what option is selected from the menu? Would I be
better off just using a tab control? Could I assign controls/data
fields to a panel and then just make the panel hidden/visible based on
the option chosen from the main menu?

Any suggestions that anyone could make would be greatly appreciatted.
Thanks in advance!
Re: How do I get the functionality of subforms...without subforms? PlatinumBay
6/4/2007 11:43:46 PM
Travis,

I think what you are looking for are User Controls to encapsulate "control
sets". They could then be shown and hidden as necessary.

Hope this helps,


Steve

[quoted text, click to view]

AddThis Social Bookmark Button