المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Help with drawing



C# Programming
04-28-2009, 02:11 PM
Hi, I'm pretty new to programing and drawing is something I've only touched on

I need to get the program to draw a shape (done that) that's as large as the form is (minus some padding) and re sizes as the form size is changed.

I know about using *Whatever* = ((width > height) ? height : Width); but I don't know where to put it and I know about this.height and this.width but don't know where to put that.

So in a nutshell I need help with getting my shape to fill up the maximum possible room in the form and resizing as the form size is changed.

Thanks in advance for any help


P.S. I know this is a very rudimentary question for many (if not all) of you out there so please don't scoff at me