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;
}
}
}
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE