Hi all,
On the load of a windows form I run some quesries against a database and extract some fields. For example if a certain settings is to be enabeled or not.
If you look at the following code:
The messagebox first says Audio Enabled: yes and then it STILL goes in the ELSE clause displaying a messagebox with the words: Why?
Does anyone have a clue what is going on here?
Thanks in advance...
- Raenius
"Free will...is an illusion"
On the load of a windows form I run some quesries against a database and extract some fields. For example if a certain settings is to be enabeled or not.
If you look at the following code:
Code:
// Audio Tab Page settings
string msg2 ="Audio_enabled: " +audio_en;
MessageBox.Show(msg2);
if(audio_en.ToString() == "yes")
{
this.checkBoxEditRouterAudioYes.Checked = true;
}
else
{
MessageBox.Show("why?");
this.checkBoxEditRouterAudioNo.Checked = true;
}
The messagebox first says Audio Enabled: yes and then it STILL goes in the ELSE clause displaying a messagebox with the words: Why?
Does anyone have a clue what is going on here?
Thanks in advance...
- Raenius
"Free will...is an illusion"