Solved

Panels in C#

Posted on 2004-08-04
5
325 Views
Last Modified: 2010-04-15
Hi

I was wondering if it's possible to create separate panels on a form in C#, similiar to how you can create two separate panels on a GUI using Java's Swing library? And if you can, how to go about it?

Thanks in advance...
0
Comment
Question by:pikapi
  • 2
5 Comments
 
LVL 1

Expert Comment

by:janeburton
ID: 11716841
are u using visual studio?
if you are, you can just drag the panel onto the aspx page.

0
 
LVL 3

Accepted Solution

by:
brandonh6k earned 50 total points
ID: 11718914
Panels in ASP.NET are pretty easy.  Just wrap each section of the page in <asp:panel> tags as appropriate.  You can then set the visibility by panel id.

In WinForm applications, just drag the panel component into place like anything else and just drop other components on it.

Do you have a specific question about using panels?  If so, you should post more details about what you're trying to accomplish.

Brandon
0
 
LVL 3

Expert Comment

by:brandonh6k
ID: 11947388
I personally think I should get at least partial credit for my answer.  I gave decent answers for both WinForms and WebForms despite a vague initial question.  :)

Brandon
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

830 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