Panel Position

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?

The panel in question 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 (0,0) 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.
 
T

T-Bone

Set the properties from you DOCUMENT to GridLayout.
Or create a GridLayoutPanel and put it in there.
 
T

Thom Little

I should have been more precise ... I was using Grid Layout and the user
control insists on positioning at (0,0).

Perhaps this is the way it is supposed to work and you must always package
it in a controlling element of some form (like a table).

"GridLayoutPanel" works. The control insists on moving to (0,0) of that
panel but I can position the panel containing the control where I please on
the page.

Thanks for the lead.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,082
Members
48,773
Latest member
Kaybee

Latest Threads

Top