Click here to Skip to main content
15,908,775 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Sir,

Please tell me how to move text rectangularly in a windows form using timer control.
Posted
Updated 16-Apr-11 3:47am
v3
Comments
Ankur\m/ 16-Apr-11 1:47am    
I have changed the tag from ASP.NET to C#.
When you say Windows form, it's a windows application and not web application.
[no name] 16-Apr-11 2:14am    
be specific, what you want to do?

set timer interval to 50
and then set an integer int count=0;
then in timer_tick event..
do the desired work..

if(count==1)
{
   txt_temp.Text="a";
   or,
   txt_temp.location=new point(x,y);
}
.
.
.
count++;
 
Share this answer
 
v3
Comments
Dalek Dave 16-Apr-11 9:47am    
Edited for Code Block.
Hi
create a label in form and set interval timer 100 and double click in time write this code in time function
label move to right

private void timer1_Tick(object sender, EventArgs e)
 {
     label1.Left += 1;
 }
 
Share this answer
 
Comments
Dalek Dave 16-Apr-11 9:47am    
Good call
This thread [^]might help you.
 
Share this answer
 
Better you try a gif image to display your text, if you want to do some stuff then you can refer this A marquee control in C#[^]
 
Share this answer
 
Comments
Dalek Dave 16-Apr-11 9:46am    
Good Link

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900