-
May 19th, 2012, 11:11 AM
#1
Thread Starter
New Member
VB 2010 Label Question
Hello.
I was wondering if anyone knew how to make a label update and add another letter beside it?
E.X : I want it to say Loading then 1 seconds later it goes to loading. then to loading.. then loading...
So
Loading
Loading.
Loading..
Loading...
Basically how do I animate the "." to be able to add one beside the "loading" every 1 second.
Please help me a.s.a.p
-
May 19th, 2012, 11:29 AM
#2
Re: VB 2010 Label Question
A Label does one thing: it displays the contents of its Text property. That's it, that's all. If you want something in your app to change regularly then you would use a Timer, set its Interval appropriately and then handle its Tick event. In the event handler you make the appropriate change. In this case, the appropriate change would be to set the Text property of your Label.
-
May 22nd, 2012, 06:54 PM
#3
Thread Starter
New Member
Re: VB 2010 Label Question
Still need help, perhaps a tutorial?
-
May 22nd, 2012, 07:19 PM
#4
Re: VB 2010 Label Question
His explanation is way too simple to need a tutorial. What is it that you don't understand ?
-
May 22nd, 2012, 10:14 PM
#5
Re: VB 2010 Label Question
Originally Posted by jmcilhinney
A Label does one thing: it displays the contents of its Text property. That's it, that's all. If you want something in your app to change regularly then you would use a Timer, set its Interval appropriately and then handle its Tick event. In the event handler you make the appropriate change. In this case, the appropriate change would be to set the Text property of your Label.
This is basically true although I have been known to use a blank label as a sort of placeholder for another Control that would be loaded from the program running. The Label is invisible when used this way and does not take any egregious amount of memory. Every now and then the Label can and quite often will do double duty, since i can then just grab it and place it where I really need it during program running, and display the Text it is meant as designed for -solely, like you have stated here John
I'm not attacking your quote at all, merely glad to be able to share some ideas amongst the group and groupies
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|