G
Guest
I created a Windows application that is having an odd issue. The application
starts for a split second, but then closes. I cannot get any error messages
to display as to what causes the program to close. Listed below is my
Default_Load method. How would I be able to trap the error so I know what is
causing this form to not load as I do not get any information at this time.
We have it running on 4 different computers, but the one computer won't let
it run. We checked to make sure all the necessary drivers are installed, but
not sure what is conflicting.
private void Default_Load(object sender, EventArgs e)
{
try
{
this.tPCEXPXRFTSTTableAdapter.Fill(this.tPCEXPXRF.TPCEXPXRFTST);
dataGridView1.CellValidating += new
DataGridViewCellValidatingEventHandler
(dataGridView1_CellValidating);
this.dataGridView1.DataError += new DataGridViewDataErrorEventHandler
(dataGridView1_DataError);
}
catch (Exception ex)
{
System.Diagnostics.EventLog log = new
System.Diagnostics.EventLog();
log.Log = "System";
log.Source = "CE Item Lookup Table Editor";
log.WriteEntry(ex.ToString());
}
}
starts for a split second, but then closes. I cannot get any error messages
to display as to what causes the program to close. Listed below is my
Default_Load method. How would I be able to trap the error so I know what is
causing this form to not load as I do not get any information at this time.
We have it running on 4 different computers, but the one computer won't let
it run. We checked to make sure all the necessary drivers are installed, but
not sure what is conflicting.
private void Default_Load(object sender, EventArgs e)
{
try
{
this.tPCEXPXRFTSTTableAdapter.Fill(this.tPCEXPXRF.TPCEXPXRFTST);
dataGridView1.CellValidating += new
DataGridViewCellValidatingEventHandler
(dataGridView1_CellValidating);
this.dataGridView1.DataError += new DataGridViewDataErrorEventHandler
(dataGridView1_DataError);
}
catch (Exception ex)
{
System.Diagnostics.EventLog log = new
System.Diagnostics.EventLog();
log.Log = "System";
log.Source = "CE Item Lookup Table Editor";
log.WriteEntry(ex.ToString());
}
}