How to specify the dimensions of a panel

  • Thread starter Thread starter Suresh
  • Start date Start date
S

Suresh

Hi,
Iam trying to build a GUI.
I would like to know how do I specfiy the size of the
Panel that is being displayed. The default some how seems
to be set as 100 as height and 200 as the width. But I
want to resize it to 300 by 300.

Thanks
Suresh
 
It seems you want to specifiy the dimensions at design time, if you're using
visual studio .net you can just right click the panel and choose properties
and set height and width to whatever you want.

If you want to do it at runtime you'll write (if its panel1)
panel1.Height = 300;
panel1.Width = 300;

...TheCow

"> Iam trying to build a GUI.
 
Back
Top