Solved

GUI application C#

Posted on 2006-11-30
3
267 Views
Last Modified: 2010-04-16
I am creating a GUI program in C#.  If i make a group box which is initially "blank"  then the user is instructed to click the "open" button.  This will then pop up multiple text boxes and a button in that blank group box.  I didn't know if there was like a "sub" menu to do this or what.  If someone could help that would be great on instructing me how to do this.
0
Comment
Question by:jmkotman
3 Comments
 
LVL 18

Expert Comment

by:Ravi Singh
ID: 18047711
Can the number of textboxes and buttons vary at runtime? if they're fixed then you could just add the controls in the groupbox at design time and set their Visible property to False -- then set it to True when the open button is clicked
0
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 500 total points
ID: 18048486
Or place a Panel inside the GroupBox and set its Dock property to Fill.  Now add your controls to the Panel and set it's Visible property to False.  Then you can make everything UnHide at once by toggle the Panel's Visible property.
0
 
LVL 16

Expert Comment

by:AlexNek
ID: 18048577
When I need different count of text boxes., I use grid like elements.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
A short article about a problem I had getting the GPS LocationListener working.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question