We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

tree view custom controls ; vb versions; won''t run- error message

Me.treeViewAdv1.Nodes(0).Nodes(0).OpenImgIndex = Me.comboBoxAdv1.SelectedIndex (line 264 in designer)


System.ArgumentOutOfRangeException was unhandled
Message="Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index"
ParamName="index"
Source="mscorlib"
StackTrace:
at System.Collections.ArrayList.get_Item(Int32 index)
at Syncfusion.Collections.ArrayListExt.get_Item(Int32 index)
at Syncfusion.Windows.Forms.Tools.TreeNodeAdvCollection.get_Item(Int32 index)
at CustomControls_2005.Form1.ComboBoxAdv_SelectedIndexChanged(Object sender, EventArgs e) in C:\Users\ddsharper\AppData\Local\Syncfusion\EssentialStudio\9.1.0.20\Windows\Tools.Windows\Samples\2.0\Tree Package\Custom Controls\vb\Form1.vb:line 264
at Syncfusion.Windows.Forms.Tools.ComboBoxBaseDataBound.OnSelectedIndexChanged(EventArgs e)
at Syncfusion.Windows.Forms.Tools.ComboBoxAdv.OnSelectedIndexChanged(EventArgs e)
at Syncfusion.Windows.Forms.Tools.ComboBoxBaseDataBound.set_SelectedIndex(Int32 value)
at Syncfusion.Windows.Forms.Tools.ComboBoxBaseDataBound.SetPopupText(String value)
at Syncfusion.Windows.Forms.Tools.ComboDropDown.SetText(String newValue, Boolean fireChangeEvent)
at Syncfusion.Windows.Forms.Tools.ComboDropDown.set_Text(String value)
at Syncfusion.Windows.Forms.Tools.ComboBoxBaseDataBound.set_Text(String value)
at CustomControls_2005.Form1.InitializeComponent() in C:\Users\ddsharper\AppData\Local\Syncfusion\EssentialStudio\9.1.0.20\Windows\Tools.Windows\Samples\2.0\Tree Package\Custom Controls\vb\Form1.Designer.vb:line 271
at CustomControls_2005.Form1..ctor() in C:\Users\ddsharper\AppData\Local\Syncfusion\EssentialStudio\9.1.0.20\Windows\Tools.Windows\Samples\2.0\Tree Package\Custom Controls\vb\Form1.vb:line 17
at CustomControls_2005.Program.Main() in C:\Users\ddsharper\AppData\Local\Syncfusion\EssentialStudio\9.1.0.20\Windows\Tools.Windows\Samples\2.0\Tree Package\Custom Controls\vb\Program.vb:line 17
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:



1 Reply

JJ Jeraldes J Syncfusion Team April 7, 2011 09:11 AM UTC

Hi DianeWhite,

Thanks for your interest in using Syncfusion Products.

We have modified the sample as per your requirement. We will assure that we will update the sample level fix in our upcoming release.

[Sample Link]

http://www.syncfusion.com/uploads/redirect.aspx?file=WF-TreeViewCoustomControls-98826_6ce194e3.zip&team=development

Please let us know if you have any concern.

Reageds,
J Jeraldes


Loader.
Live Chat Icon For mobile
Up arrow icon