本文介绍了VB中字幕的替代方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望某些文本像某些新闻内容一样在网页顶部旋转. 我正在1.1版中使用VS2003?
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?
推荐答案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
更多推荐
VB.net中字幕的替代方法
发布评论