Thank you for the promt reply. I am now a Syncfusion fan with that kind of support.
First off, your code gave me an idea, and I fixed mine. Plus, I was able to duplicate the error in your code.
Here is what you do for your sample (thanks, that helped)
Right above the this.Controls.Add(groupBar1);
add the line
this.groupBar1.Dock = DockStyle.Top;
Run program
Press Save
Press Cancel
(now, you get the two MessageBoxes with the second message box displaying that it is setting the groupBar1.SelectedItem to -1)
Now, try and resize the form.
It abends with the same error I was getting.
Once I set Dock back to none, it went away.
thanks, this really did help.
Yarddog
>Hi Yarddog,
This exception will occur only if resize the GroupBar when selected item set to -1. But in case resize the application (form) it does not through any error. Please try to set size of the GroupBar before the statement of ((GroupBar)sender).SelectedItem = -1; Also, I have created the sample application attached here. Could you please try to reproduce the issue with the attached sample. This will help for us to analyse the issue further.
GroupBarSample.zipThanks for using Syncfusion products.
Regards,
S.Gopal.