Do you not want the following structure then (i.e.add an else);
private void btnEntry_Click(object sender, EventArgs e)
{
if (
{
MessageBox.Show("Insufficient Data to Proceed");
if (Convert.ToBoolean(DialogResult.OK))
{
this.Show();
}
}
else
{
string s = cmbStandardentryclasscode.SelectedItem.ToString();
try
{
}
catch (Exception ex)
{
}
}
}