Newbie: Choose Panel depending on condition

  • Thread starter Thread starter steve
  • Start date Start date
S

steve

Hello,
I have the following proble:

I want to populate various textboxes, lists, etc. from a database. The
problem is that according to a user's choice (radio buttons) we access
different tables with slightly different fields.
So, i decided to create 2 panels that contain all the required controls, and
populate them according to the users choice.
Basically for choice A the first panel is visible and vice versa.

However its almost impossible to work with two panels since when they are on
top of each other I am not able to see the contents of the Panel in the back
unless i completely move away the top panel. Since both panels are meant to
occupy all the "real-estate" of my form, i have to completely move out of
the form one , so i can work with the other....!

Any help/suggestions? In other words, is there a way that, depending on the
user's choice, we change completely a big part or all of a form's front end
instead of using tabs?
 
You could create two usercontrols, then add them to the form dynamically
depending on the radio button selected.

Chris
 
Back
Top