Scrolling_Text_Program_Report
Scrolling_Text_Program_Report
NET
Aim:
To develop a VB.NET Windows Forms application that scrolls text continuously from left to
right and right to left across the client area using a Label and a Timer control.
Procedure:
1. Open Visual Studio and create a new Windows Forms App (.NET Framework) project.
2. Design the Form:
- Add a Label control (Label1) to display the scrolling text.
- Add a Timer control (Timer1) to manage the animation.
3. Set Properties:
- Set Label1.Text to a welcome message (e.g., "Welcome to VB.NET Scrolling Text").
- Set Timer1.Interval to 50 milliseconds.
4. Write the Code:
- In the Form_Load event, position the Label on the form.
- In the Timer_Tick event, change the Label’s Left position.
- Detect screen edges and reverse the direction when needed.
5. Run the program and observe the text moving back and forth across the screen.
Result:
The program successfully scrolls the text across the form’s client area from left to right and
then right to left, creating a smooth, continuous marquee effect.