Results 1 to 3 of 3

Thread: ImageIndex?

  1. #1

    Thread Starter
    Frenzied Member Pc_Not_Mac's Avatar
    Join Date
    Oct 2009
    Location
    localhost
    Posts
    1,206

    ImageIndex?

    Hello, How would i only put a image to the sub-parent, and not the parent it self?
    Below a made a code which adds image by node.ImageIndex = 0, and then attempts to remove it by node.ImageIndex = Nothing.
    I thought by assign the value to Nothing will work?

    Code:
     TreeView1.CheckBoxes = True
            TreeView1.ImageList = ImageList1
            Dim node As TreeNode
            Dim x As Integer
            For x = 0 To 1
                node = TreeView1.Nodes.Add("1")
                node.ImageIndex = 0
                Dim y As Integer
                For y = 1 To 4
                    node = node.Nodes.Add("Test")
                    node.ImageIndex = Nothing
                Next
            Next
    My Codebank:
    Windows Vista & 7 Glass Effect & Limit the amount of times your application could be opened.
    Pause Your Code & Check the OS name

    The question of whether computers can think is like the question of whether submarines can swim.

    Currently learning: Java

    Coding can be a learning experience or

  2. #2

    Thread Starter
    Frenzied Member Pc_Not_Mac's Avatar
    Join Date
    Oct 2009
    Location
    localhost
    Posts
    1,206

    Re: ImageIndex?

    Is my question that difficult?
    My Codebank:
    Windows Vista & 7 Glass Effect & Limit the amount of times your application could be opened.
    Pause Your Code & Check the OS name

    The question of whether computers can think is like the question of whether submarines can swim.

    Currently learning: Java

    Coding can be a learning experience or

  3. #3

    Thread Starter
    Frenzied Member Pc_Not_Mac's Avatar
    Join Date
    Oct 2009
    Location
    localhost
    Posts
    1,206

    Re: ImageIndex?

    My Codebank:
    Windows Vista & 7 Glass Effect & Limit the amount of times your application could be opened.
    Pause Your Code & Check the OS name

    The question of whether computers can think is like the question of whether submarines can swim.

    Currently learning: Java

    Coding can be a learning experience or

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width