update 20241210
This commit is contained in:
39
Client/Diverses/SplashScreen.cs
Normal file
39
Client/Diverses/SplashScreen.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace OnDoc.Diverses
|
||||
{
|
||||
public partial class SplashScreen : Form
|
||||
{
|
||||
Timer tmr;
|
||||
public SplashScreen()
|
||||
{
|
||||
InitializeComponent();
|
||||
Application.DoEvents();
|
||||
}
|
||||
|
||||
private void SplashScreen_Shown(object sender, EventArgs e)
|
||||
{
|
||||
tmr = new Timer();
|
||||
tmr.Interval = 5000;
|
||||
tmr.Start();
|
||||
Application.DoEvents();
|
||||
tmr.Tick += tmr_Tick;
|
||||
}
|
||||
|
||||
void tmr_Tick(object sender, EventArgs e)
|
||||
|
||||
{
|
||||
Application.DoEvents();
|
||||
tmr.Stop();
|
||||
this.Hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user