[Mono-bugs] [Bug 457164] After changing the combo box items selection, the application is getting crashed.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Dec 8 07:27:59 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=457164

User suneetha_g at spanservices.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=457164#c4





--- Comment #4 from suneetha_g Gunisetti <suneetha_g at spanservices.com>  2008-12-08 05:27:58 MST ---
Please find the attached functionality from SelectedIndexChanged eveny handler.

 if (cbGPOStatus.SelectedIndex != nFlags)
{
 if (cbGPOStatus.SelectedIndex == -1)
        {
            return;
        }
        try
        {
            int idx = cbGPOStatus.SelectedIndex;
            string sMsg = "Do you want to change the status for this GPO to " +
cbGPOStatus.SelectedItem.ToString();
            DialogResult dlg = MessageBox.Show(this, sMsg,
CommonResources.GetString("Caption_Console"),
            MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation);
            if (dlg == DialogResult.OK)
            {
                int ret = Modify(cbGPOStatus.SelectedIndex); //Is a user
definded function to read selected index and modify the data.

                if (ret == 0)
                {
                    container.ShowMessage("GPO Status successfull");
                }
                else
                {
                    sMsg = ErrorCodes.LDAPString(ret);
                    container.ShowError(sMsg);
                }
            }
            else
            {
                cbGPOStatus.Text = sGPOStatus;
            }
        }
        catch (Exception ex)
        {
            Logger.LogException("cbGPOStatus_SelectedIndexChanged", ex);
        }
}


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list