Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old November 19th, 2005, 03:30 PM
solinent solinent is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 70 solinent User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 25 sec
Reputation Power: 4
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!

Reply With Quote
  #2  
Old November 19th, 2005, 03:41 PM
solinent solinent is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 70 solinent User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 25 sec
Reputation Power: 4
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

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Automatically adjust width of a label depending on its text


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT