Opt In (Do Not Edit Here)

Aug 31, 2011

Scrolling Title in Windows Form


This tip shows how to scroll the title text of windows form using timer control. For this we need one Timer Control. Now set Interval property of Timer Control to 150 / 200 / 1000 etc. as desired (Note: - Interval Time is taken as milliseconds). Following Code snippet can paste into Timer_Tick Event, and enables the Timer at Form_Load Event.


      Private Sub Timer_Tick(…….)
                   Me.Text = Mid(Me.Text, 2, Len(Me.Text)) & Mid(Me.Text, 1, 1)
          End Sub
Listing 1

          Private Sub Form_Load(…….)
                   Timer.Enabled = True
          End Sub
Listing 2

Output:
           
Following snapshots represent intended result of scrolling title text for windows form.


  
Figure 1



Figure 2



Figure 3


About The Author :

Freelancer and IT Engineer
Softwares Developed by Mayur Dighe ImmortalDotNet.WordPress.com

0 comments :

All Rights Reserved. 2014 Copyright SIMPLITONA

Powered By Blogger | Published By Gooyaabi Templates Designed By : BloggerMotion

Top