LastCyborg
Programmer
This component has an event that it supossed to be raised when the state changes, but it doesn't works.
I have been checking it by unplugging the network when the App is running
What am I doing wrong?
//The connection is ok
I have coded this:
and also this code
I just want to show the status of the conection in my App
I have been checking it by unplugging the network when the App is running
What am I doing wrong?
//The connection is ok
I have coded this:
Code:
private void sqlConnection1_StateChange(object sender, System.Data.StateChangeEventArgs e)
{
statusBarPanel1.Text = e.CurrentState.ToString();
}
Code:
private void sqlConnection1_StateChange(object sender, System.Data.StateChangeEventArgs e)
{
statusBarPanel1.Text = sqlConnection1.State.ToString();
}