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.
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.
Re: Label text vertically wrong????
Andresson - You nailed it - thanks! I never noticed that...