Tip:You can double-click the program to launch the program. (Of course, the task manager can also ...)
The procedure is as follows:
1. Create a new form, set the FormBorderStyle attribute of the form to None, and the "TransparencyKey" attribute to "Control ".
2. Use one Label space, any Text writing, Font and other style customization.
3. Use one Timer space, set its Enable to True, and Interval to 100;
4. Add the Form1 form loading event. The Code is as follows:
Copy codeThe Code is as follows: private void Form1_Load (object sender, EventArgs e)
{
This. timer1.Interval = 10;
This. timer1.Enabled = true;
This. WindowState = FormWindowState. Maximized;
}
5. Add the Tick Event code of the Timer1 space:Copy codeThe Code is as follows: private void timerjavastick (object sender, EventArgs e)
{
Label1.Left-= 2;
If (label1.Right <0)
Label1.Left = this. Width;
}
6. Add the closing window function for the tag click event:Copy codeThe Code is as follows: private void label1_Click (object sender, EventArgs e)
{
This. Close ();
}