Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

Close Form After fixed time

System.Windows.Forms.Timer timer = new System.Windows.Forms.Timer();
private void Form1_Load(object sender, EventArgs e)
{
  timer.Interval = 10000;
  timer.Tick += new EventHandler(timer_Tick);
  timer.Start();
}

void timer_Tick(object sender, EventArgs e)
{
  this.Close();
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: convert object to JToken 
Csharp :: c# unhandled exception in thread” 
Csharp :: asp.net core reverse engineer database 
Csharp :: dotnet core vue in subdirectory 
Csharp :: select vs where linq 
Csharp :: plays ervices unity sigin 
Csharp :: split nullable in c# 
Csharp :: unity blender shadow messed up 
Csharp :: In ASP.NET Core how check if request is local 
Csharp :: start wpf application when windows start 
Csharp :: c# how to group console output into columns 
Csharp :: join 2 list rows into one row and add totals fields C# 
Csharp :: REMOVE BOTTOM TAB XAMARIN FORMS 
Csharp :: if equal statement c# 
Csharp :: source a listbox by property of object c# 
Csharp :: csharp functions 
Csharp :: How to use C# to open windows explorer in “select/open file mode 
Csharp :: .net open config file by name 
Csharp :: struct 
Csharp :: c# remove 0 from string 
Csharp :: c# linq get one object 
Csharp :: conevrt list to pipe separated string c# 
Csharp :: getString 
Csharp :: vb.net array search 
Csharp :: return array in c# 
Csharp :: list dictionary c# 
Csharp :: unity destroy 
Csharp :: transform face player unity 
Csharp :: can lightning strike the same place twice 
Csharp :: webbrowser control feature_browser_emulation compatible 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =