hint:Run the program to double-click the scroll subtitles to launch the program. (Of course the task manager can also...)
The steps are as follows:
1. Create a new form and set the FormBorderStyle property of the form to None, and the "TransparencyKey" property to "Control".
2. Use 1 Label space, write text at will, Font and other styles to customize.
3. Use 1 Timer space, set its Enable to True, and set Interval to 100;
4. Add Form1's form loading event, the code is as follows:
private void Form1_Load(object sender, EventArgs e)
{
this. = 10;
this. = true;
= ;
}
5. Add the Tick event code of Timer1 space:
private void timer1_Tick(object sender, EventArgs e)
{
-= 2;
if ( < 0)
= ;
}
6. Add a close window function to the tag click event:
private void label1_Click(object sender, EventArgs e)
{
();
}
The steps are as follows:
1. Create a new form and set the FormBorderStyle property of the form to None, and the "TransparencyKey" property to "Control".
2. Use 1 Label space, write text at will, Font and other styles to customize.
3. Use 1 Timer space, set its Enable to True, and set Interval to 100;
4. Add Form1's form loading event, the code is as follows:
Copy the codeThe code is as follows:
private void Form1_Load(object sender, EventArgs e)
{
this. = 10;
this. = true;
= ;
}
5. Add the Tick event code of Timer1 space:
Copy the codeThe code is as follows:
private void timer1_Tick(object sender, EventArgs e)
{
-= 2;
if ( < 0)
= ;
}
6. Add a close window function to the tag click event:
Copy the codeThe code is as follows:
private void label1_Click(object sender, EventArgs e)
{
();
}