Click here to Skip to main content
15,885,782 members
Articles / Desktop Programming / Windows Forms

Scrolling Credits Control

Rate me:
Please Sign up or sign in to vote.
4.12/5 (12 votes)
14 Jun 20052 min read 68.2K   1.6K   29  
A scrolling text and image control with smooth flicker free movement and mouse interference feature.
using System;
using System.Collections;

namespace Trustbridge.Windows.Controls.ScrollingBox
{
    public class ScrollingBoxItem
    {
		internal System.Drawing.RectangleF rectF;
        public ScrollingBoxItem()
        {
			rectF = new System.Drawing.RectangleF(0, 0, 0, 0);
        }
    }
	public class ScrollingBoxText : ScrollingBoxItem
	{
		private string text;
		public ScrollingBoxText(String Text): base()
		{
			text = Text;
		}
		public string Text
        {
            get
            {
                return text;
            }
            set
            {
                text = value;
            }
        }
	}
	public class ScrollingBoxImage : ScrollingBoxItem
	{
		private System.Drawing.Image img;
		public ScrollingBoxImage(System.Drawing.Image Image): base()
		{
			img = Image;
		}
		public System.Drawing.Image Image
		{
			get
			{
				return img;
			}
			set
			{
				img = value;
			}
		}
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions