private void Form1_Load(object sender, EventArgs e) { label2.Text = "stop here "; make_item_transparent(label1, pictureBox1); make_item_transparent(label2, pictureBox1); } private void marquee_label(Label l) { if (l.Left > label2.Location.Y) l.Left = 0; else l.Left = l.Left + 1; } private void make_item_transparent(Label label, PictureBox bar) { var pos = this.PointToScreen(label.Location); pos = bar.PointToClient(pos); label.Parent = bar; label.Location = pos; label.BackColor = Color.Transparent; } private void timer1_Tick(object sender, EventArgs e) { marquee_label(label1); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)