G
Guest
Dim objNode As MSComctlLib.Node
TreeView1.ImageList = ImageList1 'Assign the image list to TreeView
Set objNode = TreeView1.Nodes.Add() 'Create the Server Node
I need to conver the above VB 6.0 code to VB .NET.
Set objNode = TreeView1.Nodes.Add() changes to
objNode = TreeView1.Nodes.Add()
but iam getting an error that add has wrong number of arguments and if i add
some argument it says "Error 91: object reference not set to an instance of
an object"
PLEASE HELP.
thank you
TreeView1.ImageList = ImageList1 'Assign the image list to TreeView
Set objNode = TreeView1.Nodes.Add() 'Create the Server Node
I need to conver the above VB 6.0 code to VB .NET.
Set objNode = TreeView1.Nodes.Add() changes to
objNode = TreeView1.Nodes.Add()
but iam getting an error that add has wrong number of arguments and if i add
some argument it says "Error 91: object reference not set to an instance of
an object"
PLEASE HELP.
thank you