Solved

is there a Marquee control in vb.net

Posted on 2004-10-14
3
400 Views
Last Modified: 2010-05-18
is there a Marquee control in vb.net?? I'm sure I saw it somewhere but cannot locate it now!
0
Comment
Question by:visualbasic
  • 2
3 Comments
 
LVL 28

Expert Comment

by:iboutchkine
ID: 12308342
<html>
<head>
<title>Title</title>

<marquee align=center loop=infinite>
  Bla bla bla
  ..........      Taste great, too!
</marquee>


</body>
</html>

For example, to create a marquee that is 50 pixels tall and occupies one-third of the display window, use:
<marquee height=50 width="33%">

Space between marquee
<marquee vspace=10 hspace=10>

0
 

Author Comment

by:visualbasic
ID: 12308666
sorry I should have stated that I need this control for windows application
0
 
LVL 28

Accepted Solution

by:
iboutchkine earned 50 total points
ID: 12308913
'add timer textScroller

Public Class Form1
    Inherits System.Windows.Forms.Form

    Dim TextToScroll As String = "Iouri Boutchkine                        "
    Dim cbScrollingSpeedIs As Integer = 300

#Region " Windows Form Designer generated code "
#End Region


    Private Sub TextScroller_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextScroller.Tick
        Dim FirsttoLast As String
        FirsttoLast = Mid(TextToScroll, 1, 1)
        TextToScroll = TextToScroll.Remove(0, 1)
        TextToScroll = TextToScroll.Insert(Microsoft.VisualBasic.Len(TextToScroll), FirsttoLast)
        ScrollingText.Text = TextToScroll
    End Sub

    Private Sub StartScrolling_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StartScrolling.Click
        TextScroller.Enabled = True
    End Sub

    Private Sub StopScrolling_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StopScrolling.Click
        TextScroller.Enabled = False
    End Sub

    Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
        TextScroller.Interval = cbScrollingSpeedIs
    End Sub
End Class
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Query datatable in LINQ 6 39
Finding if Numbers are ranges 8 30
reports, calling from code. 3 30
Form design in vb.net 7 18
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now