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. How to Update the path of the file.....

How to Update the path of the file.....

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialannouncement
6 Posts 3 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.
  • A Offline
    A Offline
    Anamika2005
    wrote on last edited by
    #1

    Can somebody help me ...That how to update the file path in the combobox when user clicks on any item(file/folder) in the Listbox . Thanks Shikha

    C 1 Reply Last reply
    0
    • A Anamika2005

      Can somebody help me ...That how to update the file path in the combobox when user clicks on any item(file/folder) in the Listbox . Thanks Shikha

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Where are these items ? There's a selection changed event on the listbox, you can access the selected item from there and put it in the text of the combo box, assuming they are items in your form.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      A 1 Reply Last reply
      0
      • C Christian Graus

        Where are these items ? There's a selection changed event on the listbox, you can access the selected item from there and put it in the text of the combo box, assuming they are items in your form.

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

        A Offline
        A Offline
        Anamika2005
        wrote on last edited by
        #3

        Thanks or ur reply... yes i agree with u that i set the selected item from the Listbox into combobox but if i need to retrieve that path from combobox what i will use ... that is now how i get the text from the combobox back ....if use getcurSel() what index does it return me or how i retrieve the text ... Thanks Shikha

        D 1 Reply Last reply
        0
        • A Anamika2005

          Thanks or ur reply... yes i agree with u that i set the selected item from the Listbox into combobox but if i need to retrieve that path from combobox what i will use ... that is now how i get the text from the combobox back ....if use getcurSel() what index does it return me or how i retrieve the text ... Thanks Shikha

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Shikha Jain wrote:

          ...if use getcurSel() what index does it return me...

          The zero-based index of the currently selected item in the control.


          "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

          "Judge not by the eye but by the heart." - Native American Proverb

          A 1 Reply Last reply
          0
          • D David Crow

            Shikha Jain wrote:

            ...if use getcurSel() what index does it return me...

            The zero-based index of the currently selected item in the control.


            "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

            "Judge not by the eye but by the heart." - Native American Proverb

            A Offline
            A Offline
            Anamika2005
            wrote on last edited by
            #5

            Replying to your message , it is not asked that what index does getcursel() return to me , but my question is with the context that i want the combobox to get update the path of the current item which get selected in the ListBox . Which way should i proceed... Thanks n Regards Shikha

            D 1 Reply Last reply
            0
            • A Anamika2005

              Replying to your message , it is not asked that what index does getcursel() return to me , but my question is with the context that i want the combobox to get update the path of the current item which get selected in the ListBox . Which way should i proceed... Thanks n Regards Shikha

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              Shikha Jain wrote:

              ...it is not asked that what index does getcursel() return to me...

              Actually, you did. However, if that's not what you meant to ask, please rephrase your question.

              Shikha Jain wrote:

              ...i want the combobox to get update...

              Populate a combobox using either AddString() or InsertString().

              Shikha Jain wrote:

              ...current item which get selected in the ListBox .

              Which is obtained with GetText().


              "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

              "Judge not by the eye but by the heart." - Native American Proverb

              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