Panel Placement

  • Thread starter Thread starter Thom Little
  • Start date Start date
T

Thom Little

Using the Visual Studio .NET 2003 designer there does not seem to be any
method for controlling the placement of a panel on a form.

Are you expected to embed the panel in a table in order to control its
placement on the form or is there something blatantly obvious that I am
overlooking?
 
You should be able to just move the Panel around on the Form at design-time
like any other control. And at runtime you can use the Location property, or
Bounds property.
 
* "Thom Little said:
Using the Visual Studio .NET 2003 designer there does not seem to be any
method for controlling the placement of a panel on a form.

Are you expected to embed the panel in a table in order to control its
placement on the form or is there something blatantly obvious that I am
overlooking?

Select the panel until its border appears, then move the mouse over the
border and press the left mouse button. Keep the button pressed and
move the panel.
 
It is the basis for an .ascx user control. It insists on being at location
0,0 (1,1?) and can not be moved.

When the control is included in an .aspx page it positions itself in the
same place and refuses to be moved.

The only solution I could think of was to create a table with one row and
one column and then position the table where I want it. This introduces
some formatting issues.
 
True for .aspx file.

Not true for .ascx file.

When an .aspx file includes the control from the .ascx file there is no
control for the placement of the user control (panel) in the .aspx file.
 
Oh, ok. This is the Windows Forms newsgroup you might have better luck over
here:
microsoft.public.dotnet.framework.aspnet
microsoft.public.dotnet.framework.aspnet.webcontrols
microsoft.public.dotnet.framework.aspnet.buildingcontrols
 
This is true for .aspx file.

This is not true for .ascx file.

When an .aspx file includes the control from the .ascx file there is no
control for the placement of the user control (panel) in the .aspx file.
 
* "Thom Little said:
This is true for .aspx file.

This is not true for .ascx file.

When an .aspx file includes the control from the .ascx file there is no
control for the placement of the user control (panel) in the .aspx file.

This is a /Windows Forms/ group, so there are no ".as*" files... See Tim's
post for appropriate groups.
 
Back
Top