Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

is there a Marquee control in vb.net

Posted on 2004-10-14
3
Medium Priority
?
444 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 200 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

722 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