Label Movement Bottom to Top
1-Add 1 timer, label and 1 button from the toolbox then set the properties as follows.
2-Go to timer1 properties and set the timer interval =2500
3-Now go to the timer1 tick event and copy the yellow highlighted code as following.Here I am using label apart from this you can use textbox,richtextbox or as you wish...........
{
label1.Location = new Point(label1.Location.X, label1.Location.Y - 10);
}
Now go to button1click event and copy the following code.
private void button1_Click(object sender, EventArgs e)
{
timer1.start();
}
No comments:
Post a Comment