Results 1 to 9 of 9

Thread: Me.Width = Screen.Width Dont work in .NET! Help!

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2003
    Posts
    32

    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

  2. #2
    Registered User
    Join Date
    Nov 2002
    Location
    Växjö, Sweden
    Posts
    314
    Never done this but this seemed to work:

    Code:
    Me.Width = Screen.PrimaryScreen.WorkingArea.Width

  3. #3
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    Why not just set the Forms Windowstate to maximized or are you changing the size more than once?
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  4. #4
    Registered User
    Join Date
    Nov 2002
    Location
    Växjö, Sweden
    Posts
    314
    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.

  5. #5
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    Never thought of that!
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  6. #6

    Thread Starter
    Member
    Join Date
    Jan 2003
    Posts
    32
    yeah, I dont want the height, just the width.


    Josh
    Smartbar XP is WAY better then Dashboard. http://www.smartbarxp.com

  7. #7
    Registered User
    Join Date
    Nov 2002
    Location
    Växjö, Sweden
    Posts
    314
    Well then, my first post worked then, didn't it?

  8. #8

    Thread Starter
    Member
    Join Date
    Jan 2003
    Posts
    32
    Yeah, it did. Thanks.

    Josh
    Smartbar XP is WAY better then Dashboard. http://www.smartbarxp.com

  9. #9
    Registered User
    Join Date
    Nov 2002
    Location
    Växjö, Sweden
    Posts
    314
    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
  •  



Click Here to Expand Forum to Full Width