|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Automatically adjust width of a label depending on its text
Well the title describes it!
I'm creating an mp3 player, and sometimes the title is too long, so I've created a code to make the text scroll (when you hover over it, it starts a marquee). However, I need to set the width of the label so that it just fits all the text, no more, no less. I'm using VB6, instead of VB.NET, so please write code in VB6 so I can compile! Thanks! |
|
#2
|
|||
|
|||
|
Sorry, I figured out about the AutoSize property (doh!)
Figured it out ![]() EDIT: Sorry about double post! New Question: How do I keep one form in front of all the others? I did it before, forgot how, and then I lost the entire form, I recreated it (better if I may say so), and now I have no idea how to! EDIT2: Oh god I am stupid I figured it out when I did Code:
Form3.Show vbModeless, Form1 Someone can lock this thread If they want |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Automatically adjust width of a label depending on its text |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|