Solved

is there a Marquee control in vb.net

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Gridview selected row 9 49
Get size of each directory on each mapped drive 5 36
Import Data from Multiple Text Files in Excel 12 58
Create a datatable in vb.net dynamically 1 22
This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

792 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