黄聪

论SEO对人类的重要性,请看我的博客:hcsem.com

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

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;
} } }

 

posted on 2013-04-19 23:53  黄聪  阅读(10561)  评论(0编辑  收藏  举报