Results 1 to 10 of 10

Thread: Loading objects in a Combobox--RESOLVED-

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member gtilles's Avatar
    Join Date
    Dec 2004
    Location
    Planet Earth
    Posts
    394

    Loading objects in a Combobox--RESOLVED-

    How can I get the combobox to display what is in mytreenode.text
    and not the control type
    Right now each item looks like this TreeNode: myNodeTitle
    I don't care to have the object type just the title.
    If I load in the just the text then I don't have access to the node values which I need.
    If I load in the node I want it to show the text within the combo list by itself.

    VB Code:
    1. Dim myTreeNode As New TreeNode
    2.         For Each myTreeNode In myTreeViewMenu.Nodes
    3.             cboSection.Items.Add(myTreeNode)
    4.         Next
    Last edited by gtilles; Nov 29th, 2006 at 06:10 PM.
    Truly, you have a dizzying intellect.

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