|
Windows Forms General
|
Hi man:
you can try follow code to see if it was you want:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace Test2
{
public partial class Form4 : Form
{
public Form4()
{
InitializeComponent();
this.timer.Interval = 2000;
this.timer.Tick += new EventHandler(timer_Tick);
}
void timer_Tick(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Normal;
this.Visible = true;
this.timer.Enabled = false;
}
private Timer timer = new Timer();
private void button1_Click(object sender, EventArgs e)
{
this.timer.Enabled = true;
this.Visible = false;
//this.ShowInTaskbar = false;
//this.WindowState = FormWindowState.Minimized;
}
}
}