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 make a combo box readonly?

How to make a combo box readonly?

Scheduled Pinned Locked Moved C / C++ / MFC
designtutorialquestion
5 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.
  • R Offline
    R Offline
    reza matinnejad
    wrote on last edited by
    #1

    How could i make a Combo box readonly(user can not write in the combo box) in design time? How could i make a Combo box readonly(user can not write in the combo box) in run time?

    G D T 3 Replies Last reply
    0
    • R reza matinnejad

      How could i make a Combo box readonly(user can not write in the combo box) in design time? How could i make a Combo box readonly(user can not write in the combo box) in run time?

      G Offline
      G Offline
      Garth J Lancaster
      wrote on last edited by
      #2

      you obviously didnt search/look around CP very hard .. try this http://www.codeproject.com/combobox/readonlycombo.asp[^]

      R 1 Reply Last reply
      0
      • G Garth J Lancaster

        you obviously didnt search/look around CP very hard .. try this http://www.codeproject.com/combobox/readonlycombo.asp[^]

        R Offline
        R Offline
        reza matinnejad
        wrote on last edited by
        #3

        Thanks:)

        1 Reply Last reply
        0
        • R reza matinnejad

          How could i make a Combo box readonly(user can not write in the combo box) in design time? How could i make a Combo box readonly(user can not write in the combo box) in run time?

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

          reza matinnejad wrote:

          How could i make a Combo box readonly(user can not write in the combo box) in design time?

          By using the WS_DISABLED style.

          reza matinnejad wrote:

          How could i make a Combo box readonly(user can not write in the combo box) in run time?

          By calling EnableWindow(FALSE).


          "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
          • R reza matinnejad

            How could i make a Combo box readonly(user can not write in the combo box) in design time? How could i make a Combo box readonly(user can not write in the combo box) in run time?

            T Offline
            T Offline
            ThatsAlok
            wrote on last edited by
            #5

            reza matinnejad wrote:

            How could i make a Combo box readonly(user can not write in the combo box) in design time? How could i make a Combo box readonly(user can not write in the combo box) in run time?

            use combo list

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

            cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and you

            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