By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,673 Members | 1,209 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,673 IT Pros & Developers. It's quick & easy.

How to specify the dimensions of a panel

P: n/a
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
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.
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.

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.