Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Listbox problem

Listbox problem

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chandrasekharan P
    wrote on last edited by
    #1

    I have 2 listbox in my application. Now when i click on the first list box item the same item will be displayed on the second listbox and the first listbox item remains selected. now how do i remove the selected item from the second listbox if i again click on the selected item in the first listbox?

    L K 2 Replies Last reply
    0
    • C Chandrasekharan P

      I have 2 listbox in my application. Now when i click on the first list box item the same item will be displayed on the second listbox and the first listbox item remains selected. now how do i remove the selected item from the second listbox if i again click on the selected item in the first listbox?

      L Offline
      L Offline
      lxkjlzz
      wrote on last edited by
      #2

      you can remove listbox2's item when click listbox1 item,Then add listbox2's item ;P m_listbox2.ResetContent();

      1 Reply Last reply
      0
      • C Chandrasekharan P

        I have 2 listbox in my application. Now when i click on the first list box item the same item will be displayed on the second listbox and the first listbox item remains selected. now how do i remove the selected item from the second listbox if i again click on the selected item in the first listbox?

        K Offline
        K Offline
        KarstenK
        wrote on last edited by
        #3

        you need to write that code in the message handlers of the combo box. Use the VC wizard to create a message onhandler for "CBN_SELCHANGE" or other approbiate messages.

        Press F1 for help or google it. Greetings from Germany

        D 1 Reply Last reply
        0
        • K KarstenK

          you need to write that code in the message handlers of the combo box. Use the VC wizard to create a message onhandler for "CBN_SELCHANGE" or other approbiate messages.

          Press F1 for help or google it. Greetings from Germany

          D Offline
          D Offline
          dxlee
          wrote on last edited by
          #4

          There is not even a combobox involved. Read the original question carefully before you give an answer!

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups