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#
  4. Lock ComboBox

Lock ComboBox

Scheduled Pinned Locked Moved C#
visual-studiodesign
7 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.
  • V Offline
    V Offline
    VB 8 0
    wrote on last edited by
    #1

    Hi CP, I am desiging a custom control combobox that looks like combobox at design time in VS 2005 . I am left with one thing. I dont want to use dropdownstyle but i want the user cannot write any text at runtime in the combobox. i suppressed the combobox & removed the caret.' ReQ : i want the user cannot write anything in the combobox if the caret is not preset also. Regards vb8.0

    C H 2 Replies Last reply
    0
    • V VB 8 0

      Hi CP, I am desiging a custom control combobox that looks like combobox at design time in VS 2005 . I am left with one thing. I dont want to use dropdownstyle but i want the user cannot write any text at runtime in the combobox. i suppressed the combobox & removed the caret.' ReQ : i want the user cannot write anything in the combobox if the caret is not preset also. Regards vb8.0

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

      Sonds like a disaster. Why have a combobox at all ?

      Christian Graus Driven to the arms of OSX by Vista.

      V 1 Reply Last reply
      0
      • C Christian Graus

        Sonds like a disaster. Why have a combobox at all ?

        Christian Graus Driven to the arms of OSX by Vista.

        V Offline
        V Offline
        VB 8 0
        wrote on last edited by
        #3

        Hi Graus , Thanks for responding.This is for the end user. I am creating a custom ComboBox which doesnt accept the caret , text and doesn't show the list . Now i required is how to hide the focus when the cursor is on the combobox button to show as disable. 1 ) how to hide the focus when the cursor is on the combobox button at runtime ? Any ideas ? Any views regarding this ? Regards, VB 8.0

        M 1 Reply Last reply
        0
        • V VB 8 0

          Hi Graus , Thanks for responding.This is for the end user. I am creating a custom ComboBox which doesnt accept the caret , text and doesn't show the list . Now i required is how to hide the focus when the cursor is on the combobox button to show as disable. 1 ) how to hide the focus when the cursor is on the combobox button at runtime ? Any ideas ? Any views regarding this ? Regards, VB 8.0

          M Offline
          M Offline
          musefan
          wrote on last edited by
          #4

          VB 8.0 wrote:

          a custom ComboBox which doesnt accept the caret , text and doesn't show the list .

          You mean a 'Label'??? :laugh:

          My opinion is... If someone has already posted an answer, dont post the SAME answer

          1 Reply Last reply
          0
          • V VB 8 0

            Hi CP, I am desiging a custom control combobox that looks like combobox at design time in VS 2005 . I am left with one thing. I dont want to use dropdownstyle but i want the user cannot write any text at runtime in the combobox. i suppressed the combobox & removed the caret.' ReQ : i want the user cannot write anything in the combobox if the caret is not preset also. Regards vb8.0

            H Offline
            H Offline
            Henry Minute
            wrote on last edited by
            #5

            Why on earth would you want to design a combobox with no dropdown?

            Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

            M 1 Reply Last reply
            0
            • H Henry Minute

              Why on earth would you want to design a combobox with no dropdown?

              Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

              M Offline
              M Offline
              MatthysDT
              wrote on last edited by
              #6

              I hate it when people respond with "WHY DO YOU WANT TO DO THAT?" The OP asked HOW, not WHY!!! Regardless of your reasoning!

              H 1 Reply Last reply
              0
              • M MatthysDT

                I hate it when people respond with "WHY DO YOU WANT TO DO THAT?" The OP asked HOW, not WHY!!! Regardless of your reasoning!

                H Offline
                H Offline
                Henry Minute
                wrote on last edited by
                #7

                I've heard of being a dollar short and a day late but you're 14 months late :) and I'm definitely a dollar short. Not that it matters now but the reason that I asked why was so that I could get a better handle on what the OP was really trying to do, the better to formulate a sensible reply.

                Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

                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