By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,557 Members | 1,164 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,557 IT Pros & Developers. It's quick & easy.

Marquee

P: 2
How to do marqueeing some text in VB?
Please help.
Dec 23 '07 #1
Share this Question
Share on Google+
2 Replies


Ali Rizwan
100+
P: 927
how to to marqueeing some text in vb?
plz help
Use this code for slide some text in a label..

Expand|Select|Wrap|Line Numbers
  1. Private Sub Timer1_Timer()
  2.     lblName.Caption = Mid(strActualValue, InStr(1, strActualValue, Trim(lblName.Caption)) + 1, 5)
  3. End Sub
Or
Expand|Select|Wrap|Line Numbers
  1. Dim strActualValue As String
  2. Private Sub Form_Load()
  3.     strActualValue = "123456789012345678901234567890"
  4. End Sub
  5.  
  6. Private Sub Timer1_Timer()
  7.     lblName.Caption = Mid(strActualValue, InStr(1, strActualValue, Trim(lblName.Caption)) + 1, 5)
  8. End Sub
Regards

>> ALI <<
Dec 23 '07 #2

Expert 5K+
P: 8,434
So, siddharth23c, did Ali's suggestion help? If not, please try to describe your problem in more detail.
Dec 29 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.