1、新建一个窗体程序,添加一个Timer以及设置它可用并绑定事件

2、设置窗体的TopMost属性为True

3、然后设置代码如下即可实现

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;namespace jiyi
{
    public partial class Form1 : Form
    {public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
this.TopMost = false;
this.BringToFront();
this.TopMost = true;
} } }

 

相关文章:

  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2022-12-23
  • 2021-08-22
猜你喜欢
  • 2021-11-20
  • 2022-12-23
  • 2021-11-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案