Solved

is there a Marquee control in vb.net

Posted on 2004-10-14
3
419 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

803 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