【Visual Studio Visual Csharp】Progess Bar Marquee

 using System;

using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; // make sure that using System.Diagnostics; is included using System.Diagnostics; namespace progressBarMarrqueC { public partial class Form1 : Form { public Form1() { InitializeComponent(); } int StartPos = 0; string TextToShow = "https://edwardize.blogspot.com"; int Position = 20; private void Form1_Load(object sender, EventArgs e) { } private void timer1_Tick(object sender, EventArgs e) { Graphics gra = this.CreateGraphics(); gra.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality; gra.DrawString(TextToShow, new Font("Arial", Position), new SolidBrush(Color.Black), StartPos, 35); StartPos += 10; if (StartPos >= this.Width) StartPos = TextToShow.Length * Position * -1; this.Refresh(); } } }

No comments:

My New Favorite Music Genre Is Polish Noir

These 10 artists create music that is mystical, melancholy, magical, and more. ͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏    ...

Contact Form

Name

Email *

Message *