-
Notifications
You must be signed in to change notification settings - Fork 0
/
frmSplash.cs
73 lines (65 loc) · 1.46 KB
/
frmSplash.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
using Microsoft.VisualBasic;
using System;
using System.Windows.Forms;
namespace SKS
{
internal partial class frmSplash
: System.Windows.Forms.Form
{
public frmSplash()
: base()
{
if (m_vb6FormDefInstance == null)
{
if (m_InitializingDefInstance)
{
m_vb6FormDefInstance = this;
}
else
{
try
{
//For the start-up form, the first instance created is the default instance.
if (System.Reflection.Assembly.GetExecutingAssembly().EntryPoint != null && System.Reflection.Assembly.GetExecutingAssembly().EntryPoint.DeclaringType == this.GetType())
{
m_vb6FormDefInstance = this;
}
}
catch
{
}
}
}
//This call is required by the Windows Form Designer.
InitializeComponent();
}
private void Form_KeyPress(Object eventSender, KeyPressEventArgs eventArgs)
{
int KeyAscii = Strings.Asc(eventArgs.KeyChar);
try
{
this.Close();
}
finally
{
if (KeyAscii == 0)
{
eventArgs.Handled = true;
}
eventArgs.KeyChar = Convert.ToChar(KeyAscii);
}
}
//UPGRADE_NOTE: (7001) The following declaration (Frame1_Click) seems to be dead code More Information: https://www.mobilize.net/vbtonet/ewis/ewi7001
//private void Frame1_Click()
//{
//this.Close();
//}
private void Timer1_Tick(Object eventSender, EventArgs eventArgs)
{
this.Close();
}
private void Form_Closed(Object eventSender, EventArgs eventArgs)
{
}
}
}