01 Dim intTime As Integer = 1
02 Dim dteLastStart, dteStartDate As Date
03 Dim blnFirstTime, blnEnabled As Boolean
04 Dim lngTimeLeft As Long
05
06 blnEnabled = True
07 If dteStartDate = Nothing Then
08 dteStartDate = Now
09 End If
10
11 My.Application.SaveMySettingsOnExit = True
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
RegForm frmRegister = new RegForm();
int intTime = 1;
System.DateTime dteStartDate = default(System.DateTime);
System.DateTime dteLastStart = default(System.DateTime);
bool blnFirstTime = false;
bool blnEnabled = false;
long lngTimeLeft = 0;
public Form1()
{
InitializeComponent();
}
private void registerProductToolStripMenuItem_Click(object sender, EventArgs e)
{
if (frmRegister.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
//
}
}
private void Form1_Load(object sender, EventArgs e)
{
blnEnabled = true;
if (dteStartDate == null)
{
dteStartDate = DateTime.Now;
}
my.Application.SaveMySettingsOnExit = true;
}
}
}
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.
Our community of experts have been thoroughly vetted for their expertise and industry experience.