|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
TreeNode.Remove(Boolean notify) exceptionDear all,
I have a tree node inherited from TreeNode class. Sometimes when I call Nodes.Clear() I get following exception. I use .NET 2.0.50727. Seems to be MS bug? Any ideas? Thanks Boni System.NullReferenceException: Object reference not set to an instance of an object. at System.Windows.Forms.TreeNode.Remove(Boolean notify) at System.Windows.Forms.TreeNode.Clear() at System.Windows.Forms.TreeNodeCollection.Clear() Boni wrote:
Show quoteHide quote > Dear all, It is telling you that "Nodes" is set to nothing when you are calling Clear.> I have a tree node inherited from TreeNode class. Sometimes when I call > Nodes.Clear() I get following exception. > I use .NET 2.0.50727. > Seems to be MS bug? > Any ideas? > Thanks > Boni > > System.NullReferenceException: Object reference not set to an instance of an > object. > at System.Windows.Forms.TreeNode.Remove(Boolean notify) > at System.Windows.Forms.TreeNode.Clear() > at System.Windows.Forms.TreeNodeCollection.Clear() > > Try this: if Nodes isnot nothing Nodes.Clear
Combobox in VB2005
Newbie Question 2, Reference To Controls On A Form problem with relative paths in VS/VB.net making image click fire codebehind function? newbie problem with array Problem Communicating Between Forms late bound form reference Calling Program A from Program B help with multiple forms on asp.net 1.1 page, please Download free ebooks |
|||||||||||||||||||||||