setting height and width of controls in form
-
I have a windows form. I set the "window state" property to "maximize". But in this form i have 2 controls: a picture box and a windows media player tool. They are placed side by side. How can i set the height and width of the picture box tool and windows media player tool, so tat their size (width and height)is 1/2 the size of the form, after the form is maximized.... plz help------
-
I have a windows form. I set the "window state" property to "maximize". But in this form i have 2 controls: a picture box and a windows media player tool. They are placed side by side. How can i set the height and width of the picture box tool and windows media player tool, so tat their size (width and height)is 1/2 the size of the form, after the form is maximized.... plz help------
Ever thought of working for NASA? Because this is ground breaking stuff. Here's a little hint:
this.pictureBox1.Width = this.ClientSize.Width / 2;
andthis.Resize += new EventHandler(ResizeForm); private void ResizeForm(object obj, EventArgs e)
My failometer is detecting vast quantities of FAIL!
-
I have a windows form. I set the "window state" property to "maximize". But in this form i have 2 controls: a picture box and a windows media player tool. They are placed side by side. How can i set the height and width of the picture box tool and windows media player tool, so tat their size (width and height)is 1/2 the size of the form, after the form is maximized.... plz help------
A second grade astronaut might consider a TableLayoutPanel, I haven't used it so far. :)
Luc Pattyn [Forum Guidelines] [My Articles]
Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in