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. Problem in DropList Combobox.

Problem in DropList Combobox.

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
15 Posts 5 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.
  • R Rajesh R Subramanian

    Can you please show us your code?

    Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

    H Offline
    H Offline
    Hamid Taebi
    wrote on last edited by
    #4

    Hey what happend for your posts(are you toxxct? :laugh:) of course I give you 5 vote ;) ,but its question for me why 1 without any explain?

    R 1 Reply Last reply
    0
    • H Hamid Taebi

      Hey what happend for your posts(are you toxxct? :laugh:) of course I give you 5 vote ;) ,but its question for me why 1 without any explain?

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #5

      Thanks a lot for the vote. :)

      Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

      H 1 Reply Last reply
      0
      • L Le rner

        Hi all, I m using Droplist combobox because i want to use uneditable combobox. but when i want to show particular string of combobox then it is blank. I m using here SelectString but it is not working. Please tell me how can i show the selected string in droplist combobox. Thanks in advance.

        IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #6

        ThatsMe. wrote:

        I m using here SelectString but it is not working.

        Why its not working?whats the return value?

        1 Reply Last reply
        0
        • L Le rner

          But is working in case of Dropdown. in my code at input side i m save a string from Combbox.and at the time output i m showing the saved string. CCombobox m_mnts_combo; m_mnts_combo.SelectString(0, (CString)m_PayMonth);

          IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH

          R Offline
          R Offline
          Rajesh R Subramanian
          wrote on last edited by
          #7

          Have you checked the return value of SelectSring? The documentation says that the return value would be: The zero-based index of the selected item if the string was found. If the search was unsuccessful, the return value is CB_ERR and the current selection is not changed.

          Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

          1 Reply Last reply
          0
          • R Rajesh R Subramanian

            Thanks a lot for the vote. :)

            Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

            H Offline
            H Offline
            Hamid Taebi
            wrote on last edited by
            #8

            You're welcome. :-D

            1 Reply Last reply
            0
            • L Le rner

              Hi all, I m using Droplist combobox because i want to use uneditable combobox. but when i want to show particular string of combobox then it is blank. I m using here SelectString but it is not working. Please tell me how can i show the selected string in droplist combobox. Thanks in advance.

              IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH

              S Offline
              S Offline
              sheshidar
              wrote on last edited by
              #9

              CComboBox m_Cmb;
              m_Cmb.SetCurSel(0);

              1 Reply Last reply
              0
              • L Le rner

                But is working in case of Dropdown. in my code at input side i m save a string from Combbox.and at the time output i m showing the saved string. CCombobox m_mnts_combo; m_mnts_combo.SelectString(0, (CString)m_PayMonth);

                IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH

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

                someone wrote:

                m_mnts_combo.SelectString(0, (CString)m_PayMonth);

                What type is m_PayMonth?

                "Love people and use things, not love things and use people." - Unknown

                "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

                L 1 Reply Last reply
                0
                • D David Crow

                  someone wrote:

                  m_mnts_combo.SelectString(0, (CString)m_PayMonth);

                  What type is m_PayMonth?

                  "Love people and use things, not love things and use people." - Unknown

                  "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

                  L Offline
                  L Offline
                  Le rner
                  wrote on last edited by
                  #11

                  it is string which we want to show.

                  IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH

                  R 1 Reply Last reply
                  0
                  • L Le rner

                    it is string which we want to show.

                    IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH

                    R Offline
                    R Offline
                    Rajesh R Subramanian
                    wrote on last edited by
                    #12

                    He asked you what type of variable it is. (LPCTSTR, LPTSTR, TCHAR*, CString, etc?)

                    Ok, everytime I enter aa code with anny of the #include starters, i get 103 errors and 2 warnings, and then I look for them, and it opens a new window "tab" thingy, and otsream, or istream or math or w/e i am using comes up. It makes testing fully written programs impossible to test. Does anyone know how to fix it?? - A query asked on the VC++ board[^]

                    L 1 Reply Last reply
                    0
                    • R Rajesh R Subramanian

                      He asked you what type of variable it is. (LPCTSTR, LPTSTR, TCHAR*, CString, etc?)

                      Ok, everytime I enter aa code with anny of the #include starters, i get 103 errors and 2 warnings, and then I look for them, and it opens a new window "tab" thingy, and otsream, or istream or math or w/e i am using comes up. It makes testing fully written programs impossible to test. Does anyone know how to fix it?? - A query asked on the VC++ board[^]

                      L Offline
                      L Offline
                      Le rner
                      wrote on last edited by
                      #13

                      CString type varialble.

                      IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH

                      R D 2 Replies Last reply
                      0
                      • L Le rner

                        CString type varialble.

                        IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH

                        R Offline
                        R Offline
                        Rajesh R Subramanian
                        wrote on last edited by
                        #14

                        He will get notified only if you reply to him.

                        Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

                        1 Reply Last reply
                        0
                        • L Le rner

                          CString type varialble.

                          IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH

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

                          Then why the unnecessary cast?

                          "Love people and use things, not love things and use people." - Unknown

                          "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

                          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