Hi
I upgraded a visual basic project from infragistics version 2003 to 2010.2
I removed all errors and warnings and could successfully run the project.
But my code breaks with different errors when a ultra combo box's value or text property is set using code.
For example,
If my previous code has assigned value property:
UltraComboBox.value = 0
It throws error "Object reference not set to the instance of an object" Commenting this code allows application to run.
If my previous code has assigned text property:
UltraCombobox.Text = ""
It throws error "Object reference not set to the instance of an object" Replacing "" with Nothing allows the code to run.
Has value and text property assignment changed over infragistics versions?
Thanks
Shivangi
Hi Shivangi,
What object is null when the exception occurs? Can you post the call stack of the exceptions?
Hi Mike,
Here is the call stack for UltraCombo Value changed:
System.NullReferenceException occurred
Message="Object reference not set to an instance of an object."
Source="Infragistics2.Win.UltraWinGrid.v10.2"
StackTrace:
at Infragistics.Win.UltraWinGrid.UltraGridBase.OnTextChanged(EventArgs e) at Infragistics.Win.UltraWinGrid.UltraCombo.OnTextChanged(EventArgs e) at Infragistics.Win.UltraWinGrid.UltraCombo.FireTextChangedEventHelper(Boolean hasChanged, String newText) at Infragistics.Win.UltraWinGrid.UltraCombo.SelectedItemChangeHelper(ComboSelectedItemChangeContext context, Object newData) at Infragistics.Win.UltraWinGrid.UltraCombo.set_Value(Object value) at ProjectName.FormName.ComboBoxName_ValueChanged(Object sender, EventArgs e) in C:\Documents and Settings\Visual Studio 2008\Projects\ProjectName\ProjectName\FormName.vb:line 1234
InnerException:
Thanks,