M
Mike Livenspargar
The following exception occurs when I assign a value to the
ErrorProvider control on my form:
Window Handle already exists.
at System.Windows.Forms.NativeWindow.CheckReleased()
at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
at System.Windows.Forms.ErrorWindow.EnsureCreated()
at System.WIndows.Forms.ErrorWindow.Add(ControlItem item)
at System.Windows.Forms.ControlItem.AddToWindow()
at System.Windows.FOrms.ControlItem.set_Error(String value)
at System.Windows.Forms.ErrorProvider.SetError(Control control,
String value)
at
System.Window.Forms.ErrorProvider.ErrorManager_CurrentChanged(Object
sender, EventArgs e)
at System.Windows.Forms.ErrorProvider.UpdateBinding()
at System.Windows.Forms.ErrorProvider.Set_ErrorManager(Object
newDataSource, String newDataMember, Boolean force)
at System.Windows.Forms.ErrorProvier.set_DataSource(Object_value)
I'm assigning an IBindingList object to myErrorProvider.DataSource.
myErrorProvider is declared in a base class UserControl from which the
current UserControl is derived. This arrangement seems to work fine in
a number of other controls, and occasionally even works in this
control. Where should I look to determine how to correct this error?
Thanks,
Mike
ErrorProvider control on my form:
Window Handle already exists.
at System.Windows.Forms.NativeWindow.CheckReleased()
at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
at System.Windows.Forms.ErrorWindow.EnsureCreated()
at System.WIndows.Forms.ErrorWindow.Add(ControlItem item)
at System.Windows.Forms.ControlItem.AddToWindow()
at System.Windows.FOrms.ControlItem.set_Error(String value)
at System.Windows.Forms.ErrorProvider.SetError(Control control,
String value)
at
System.Window.Forms.ErrorProvider.ErrorManager_CurrentChanged(Object
sender, EventArgs e)
at System.Windows.Forms.ErrorProvider.UpdateBinding()
at System.Windows.Forms.ErrorProvider.Set_ErrorManager(Object
newDataSource, String newDataMember, Boolean force)
at System.Windows.Forms.ErrorProvier.set_DataSource(Object_value)
I'm assigning an IBindingList object to myErrorProvider.DataSource.
myErrorProvider is declared in a base class UserControl from which the
current UserControl is derived. This arrangement seems to work fine in
a number of other controls, and occasionally even works in this
control. Where should I look to determine how to correct this error?
Thanks,
Mike