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.
Re: VB 2010 Label Question
Still need help, perhaps a tutorial?
Re: VB 2010 Label Question
His explanation is way too simple to need a tutorial. What is it that you don't understand ?
Re: VB 2010 Label Question
Quote:
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 ;)