Results 1 to 3 of 3

Thread: Label text vertically wrong????

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2002
    Posts
    158

    Question Label text vertically wrong????

    I am having a VB.net problem that I do not understand nor can I resolve. I stripped everything from the program in order to focus on the problem and the code is attached. Basically the program reads stock symbols from a file and displays them, the current value, etc.

    The program works, but there is some weirdness. If you run the program as shown, in the form, the vertical position of the first word is too high, see the image InitProb.jpg. I edited the code to shift only the top left label down, but when I do this, part of the first line is hidden, see NewProb.jpg.

    I cannot imagine why the first label box would have to be shifted, but I cannot figure out why the text in that label is positioned incorrectly. Please help.

  2. #2
    New Member J Andersson's Avatar
    Join Date
    Jul 2012
    Posts
    2

    Re: Label text vertically wrong????

    The problem is that the label isn't wide enough. In the code, you set the Text of the label to be Stock Sym but the "Sym" part doesn't fit so you get a linebreak, that moves up the first word.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2002
    Posts
    158

    Re: Label text vertically wrong????

    Andresson - You nailed it - thanks! I never noticed that...

Tags for this Thread

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