I want to do the VB 6 equivalent of Me.Width = Screen.Width in VB.NET, but it dont work. Please help me.
Josh
Printable View
I want to do the VB 6 equivalent of Me.Width = Screen.Width in VB.NET, but it dont work. Please help me.
Josh
Never done this but this seemed to work:
Code:Me.Width = Screen.PrimaryScreen.WorkingArea.Width
Why not just set the Forms Windowstate to maximized or are you changing the size more than once?
I agree with RealNickyDude, that should be the easiest. But maybe you just want to set the width to screen size but not the height.
Never thought of that! :rolleyes:
yeah, I dont want the height, just the width.
Josh
Well then, my first post worked then, didn't it?
Yeah, it did. Thanks.
Josh
No problem! :)
I just got worried it didn't as the discussion got along without the confirmation...