Results 1 to 5 of 5

Thread: [RESOLVED] [2005] Edit Item In Checked ListBox(......help help)

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2006
    Posts
    426

    Resolved [RESOLVED] [2005] Edit Item In Checked ListBox(......help help)

    I stripped part of my project and included where i need help.

    ISSUE:
    As in the attached sample, i have two checked listboxes ona form and a contextmenu for editing the items in the listboxes.
    When i click on one or more items in the first Listbox, it brings the values related to the checked item in(Admin Level 1) to the Admin Level 2 listbox.
    I populate and retrieve the values of the listboxes using an array class.

    MAIN ISSUE:
    When i populate (Admin Level 2 listbox) using the selectedIndexChanged Event for (Admin Level 1 listbox), i can't edit the items in the (listbox 1)!, yet i can edit the items in listbox 2!
    To check this, try commenting out the routine that populates listbox 2 and then Edit the items in listbox 1. It works perfect, but when you uncomment it, it gives an error "Unable to cast object of type 'System.String' to type 'EditCheckedListBox.cls_ListComboItem'"! I get puzzled.
    What am i getting wrong here. The SQL Statement is correct and it seems it gets called again.
    Please help me.

    Note: To Edit, right click an item in the listbox and click Edit.
    I am sorry for not commenting out the code. But i presume its pretty
    simple to understand for an average man
    Attached Files Attached Files
    Last edited by maps; Nov 2nd, 2006 at 06:17 AM. Reason: ...

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