Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / September 2004

Tip: Looking for answers? Try searching our database.

Newbie: Choose Panel  depending on condition

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
steve - 15 Sep 2004 16:32 GMT
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?
Christopher Kimbell - 15 Sep 2004 17:17 GMT
You could create two usercontrols, then add them to the form dynamically
depending on the radio button selected.

Chris

> Hello,
> I have the following proble:
[quoted text clipped - 21 lines]
> end
> instead of using tabs?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.