| | |
Form Text characters move right to left + Timer
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
This code will display scroling text from left to right in Label.
First set timer Enable = True.
try this following code :
First set timer Enable = True.
try this following code :
vb.net Syntax (Toggle Plain Text)
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick label1.Text = Microsoft.VisualBasic.Right _ (label1.Text, 1) & Microsoft.VisualBasic.Left _ (label1.Text, Len(label1.Text) - 1) End Sub
Last edited by Jx_Man; May 11th, 2008 at 12:10 pm.
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
•
•
Join Date: Dec 2002
Posts: 461
Reputation:
Solved Threads: 56
I don't like to correct anyone but you need to get away from vb6. To do it the net way
The first pram is the starting index (0 being the first character). If you omit the second pram then the rest of the string is used. So if the string is "012345" then TextBox1.Text.Substring(1) will return "12345".
The second pram is the length of what you want. In this case the second part Substring(0,1) is getting the first character. It will move the first character to the end of the string.
I'm not good at explaining but I hope you understand what I am trying to say.
If you want something cool, do this to the title bar and look at the task bar. You can do this to show what is happening in your program even it the application is not showing.
VB.NET Syntax (Toggle Plain Text)
TextBox1.Text = TextBox1.Text.Substring(1) & TextBox1.Text.Substring(0, 1)
The second pram is the length of what you want. In this case the second part Substring(0,1) is getting the first character. It will move the first character to the end of the string.
I'm not good at explaining but I hope you understand what I am trying to say.
If you want something cool, do this to the title bar and look at the task bar. You can do this to show what is happening in your program even it the application is not showing.
VB.NET Syntax (Toggle Plain Text)
Me.Text = Me.Text.Substring(1) & Me.Text.Substring(0, 1)
Wayne
It is hard to understand how a cemetery can raise its burial rates and blame it on the cost of living.
It is hard to understand how a cemetery can raise its burial rates and blame it on the cost of living.
•
•
•
•
I don't like to correct anyone but you need to get away from vb6. To do it the net way
The first pram is the starting index (0 being the first character). If you omit the second pram then the rest of the string is used. So if the string is "012345" then TextBox1.Text.Substring(1) will return "12345".VB.NET Syntax (Toggle Plain Text)
TextBox1.Text = TextBox1.Text.Substring(1) & TextBox1.Text.Substring(0, 1)
The second pram is the length of what you want. In this case the second part Substring(0,1) is getting the first character. It will move the first character to the end of the string.
I'm not good at explaining but I hope you understand what I am trying to say.
If you want something cool, do this to the title bar and look at the task bar. You can do this to show what is happening in your program even it the application is not showing.
VB.NET Syntax (Toggle Plain Text)
Me.Text = Me.Text.Substring(1) & Me.Text.Substring(0, 1)
My post is fully vb6 concept. hope to learn much from you

Great friend.
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
•
•
Join Date: May 2008
Posts: 3
Reputation:
Solved Threads: 0
•
•
•
•
This code will display scroling text from left to right in Label.
First set timer Enable = True.
try this following code :
vb.net Syntax (Toggle Plain Text)
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick label1.Text = Microsoft.VisualBasic.Right _ (label1.Text, 1) & Microsoft.VisualBasic.Left _ (label1.Text, Len(label1.Text) - 1) End Sub
Thank you so much for answered my question and solved my doubt. Your code is working well and I am happy.
Yours,
Vijaykumaran
•
•
Join Date: May 2008
Posts: 3
Reputation:
Solved Threads: 0
•
•
•
•
I don't like to correct anyone but you need to get away from vb6. To do it the net way
The first pram is the starting index (0 being the first character). If you omit the second pram then the rest of the string is used. So if the string is "012345" then TextBox1.Text.Substring(1) will return "12345".VB.NET Syntax (Toggle Plain Text)
TextBox1.Text = TextBox1.Text.Substring(1) & TextBox1.Text.Substring(0, 1)
The second pram is the length of what you want. In this case the second part Substring(0,1) is getting the first character. It will move the first character to the end of the string.
I'm not good at explaining but I hope you understand what I am trying to say.
If you want something cool, do this to the title bar and look at the task bar. You can do this to show what is happening in your program even it the application is not showing.
VB.NET Syntax (Toggle Plain Text)
Me.Text = Me.Text.Substring(1) & Me.Text.Substring(0, 1)
Thank you so much for answered my question and solved my doubt. Your code is working well and I am happy.
Yours,
Vijaykumaran
you're welcome...
don't forget mark this thread solved
don't forget mark this thread solved
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
![]() |
Other Threads in the VB.NET Forum
- Previous Thread: Update the database with changes made to Data From Wizard
- Next Thread: Security Exception
| Thread Tools | Search this Thread |
"crystal .net .net2005 30minutes 2005 2008 access arithmetic array assignment basic binary bing box button buttons center check code combobox component connectionstring convert crystalreport data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dosconsolevb.net dropdownlist editvb.net excel file-dialog firewall folder ftp google hardcopy image images isnumericfuntioncall listview login math memory mobile ms mssqlbackend mysql navigate net networking opacity output peertopeervideostreaming picturebox picturebox1 port print printpreview problemwithinstallation project record reports" save savedialog searchbox serial soap sorting string tcp temp text textbox timer toolbox trim updown upload useraccounts usercontrol vb vb.net vb.netcode vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet view visual visualbasic visualbasic.net visualstudio web wpf






