Results 1 to 4 of 4

Thread: [RESOLVED] why would a form start up like this (see pic)

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2007
    Location
    indiana
    Posts
    341

    Resolved [RESOLVED] why would a form start up like this (see pic)



    i have vista, i checked the windowstate property it was set to normal. i dont know what could be wrong.

    EDIT: it seems that this code is causing the problem but why?
    Code:
     Dim lbl As New Label
            With lbl
                Location = New Point(548, 511)
                Text = "ProgramerID: 86162"
                Height = 25
                Width = 150
            End With
    Last edited by bagstoper; Feb 21st, 2009 at 09:27 PM.

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,479

    Re: why would a form start up like this (see pic)

    vb Code:
    1. Dim lbl As New Label
    2. With lbl
    3.     .Location = New Point(548, 511)
    4.     .Text = "ProgramerID: 86162"
    5.     .Height = 25
    6.     .Width = 150
    7. End With

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2007
    Location
    indiana
    Posts
    341

    Re: why would a form start up like this (see pic)

    doh when i checked my email i saw that someone had answered it. so i switched back to this tab and i was halfway done typing another edit. i removed the whole with thing and it worked.

  4. #4
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,479

    Re: why would a form start up like this (see pic)

    when you use with it adds that (in this case lbl) to the start of the statements in the with block. what you did was changing the form location, text, height, + width

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