|
-
Jan 8th, 2003, 07:06 PM
#1
Thread Starter
Member
Me.Width = Screen.Width Dont work in .NET! Help!
I want to do the VB 6 equivalent of Me.Width = Screen.Width in VB.NET, but it dont work. Please help me.
Josh
Smartbar XP is WAY better then Dashboard. http://www.smartbarxp.com
-
Jan 9th, 2003, 02:29 AM
#2
Registered User
Never done this but this seemed to work:
Code:
Me.Width = Screen.PrimaryScreen.WorkingArea.Width
-
Jan 9th, 2003, 03:56 AM
#3
Hyperactive Member
Why not just set the Forms Windowstate to maximized or are you changing the size more than once?
-
Jan 9th, 2003, 10:24 AM
#4
Registered User
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.
-
Jan 9th, 2003, 10:27 AM
#5
Hyperactive Member
Never thought of that!
-
Jan 9th, 2003, 10:37 AM
#6
Thread Starter
Member
yeah, I dont want the height, just the width.
Josh
Smartbar XP is WAY better then Dashboard. http://www.smartbarxp.com
-
Jan 9th, 2003, 10:41 AM
#7
Registered User
Well then, my first post worked then, didn't it?
-
Jan 9th, 2003, 10:45 AM
#8
Thread Starter
Member
Yeah, it did. Thanks.
Josh
Smartbar XP is WAY better then Dashboard. http://www.smartbarxp.com
-
Jan 9th, 2003, 10:46 AM
#9
Registered User
No problem! 
I just got worried it didn't as the discussion got along without the confirmation...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|