[RESOLVED] [2005] Positioning panel
Panel1.Top = Me.Top : Panel1.Left = Me.Left
But the panel doesnt seem to be positioned at the top left corner of the form. Can it be positioned that way? I have multiple panels and i want certain panel to be appeared at one time and be positioned at top left corner.
Re: [2005] Positioning panel
try
vb Code:
Panel1.Top = 0 : Panel1.Left = 0
Re: [RESOLVED] [2005] Positioning panel
Better would be:
vb.net Code:
Me.Panel1.Location = Point.Empty
assuming you want it in the top left corner of the form. If you want it elsewhere then you should create your own Point:
vb.net Code:
Me.Panel1.Location = New Point(x, y)
You should only set the Top and Left properties individually if you only want to set one of them. Similarly, you should not set the Size and Location properties separately when you can set the Bounds property or call the SetBounds method.