Click here to Skip to main content
12,500,915 members (48,132 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VB VB.NET
I want some text to be rotate at the top of the web page just like some news contents.

I am using VS2003 in 1.1 version?
Posted 22-Nov-12 18:30pm
Neha89595

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Private m_intMarqueeCounter As Integer = 1
Private m_bolMarqueeIncrementUp As Boolean = True
 
Private Sub YourMarqueeTimer_Tick()
 
   'You can decide what number is best for your app.
   If m_intMarqueeCounter = 10 Then
      m_bolMarqueeIncrementUp = False
   End If
 
   If m_intMarqueeCounter = 0 Then
      m_bolMarqueeIncrementUp = True
   End If
 
   Dim intX As Integer
   For intX = 0 to m_intMarqueeCounter
      frmYourForm.Text = " " & "Your Title"
   Next
 
   If m_bolMarqueeIncrementUp Then
      m_intMarqueeCounter += 1
   Else
      m_intMarqueeCounter -= 1
   End If
 
End Sub
  Permalink  
v2

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160919.1 | Last Updated 26 Nov 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100