C# Panels
Use the Panel control to group controls on a Web form. Using the Panel control on a Web form is different from using the Panel control
on a Windows form. For one thing, you can't draw controls on a Panel control. You must first draw your controls on the Web form, and
then drag them onto the Panel control. For another thing, the Web Forms Panel control uses flow layout rather than grid layout. This
means that you can't drag a control to an exact position on a panel.
To position controls on a Panel control, follow these steps:
1. Draw the controls on the Web form
2. Drag the controls onto the Panel control in the order in which you want them displayed. Visual Studio will place each control
immediately after the next in sequence.
3. use carriage returns and spaces to place the controls where you want them to appear.
The following code hides the panel:
pnl_Logon.Visible = False;