hi all,
i tried scrolling text (marquee text ) . it will work properly . but
it will scroll right to left but i want top to bottom can anybody help
me . i send my code also
this is my code ..........

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace scrool
{
    public partial class Form1 : Form
    {

        string someTextIWantToScroll = "This is some scrolling text";
        int numberOfCharactersToDisplay = 100;
        string scrollingTextSelector = null;
        public static int count = 0;


        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            scrollingTextSelector = someTextIWantToScroll;
            while (!(scrollingTextSelector.Length >
(someTextIWantToScroll.Length + numberOfCharactersToDisplay)))
            {
                scrollingTextSelector += " " + someTextIWantToScroll;
            }
            timer1.Enabled = !timer1.Enabled;


        }


        private void timer1_Tick(object sender, EventArgs e)
        {
         //static int count = 0;

label1.Text = scrollingTextSelector.Substring(count,
numberOfCharactersToDisplay);

count += 1;
if (count > someTextIWantToScroll.Length)
{
        count = 0;
}

        }

        //private void button1_Click(object sender, EventArgs e)
        //{

        //}


        }
    }

Reply via email to