ComboBox ReadOnly

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Roberto

    #1

    ComboBox ReadOnly

    Hi,

    using vb 2005 I'd like to have a combobox in READONLY mode, like I have for
    textbox.
    Combobox only has enabled property. When I turn this property false I can
    not select the text in the combo.

    Has anyone solved this problem?

    Thanks
  • Kerry Moorman

    #2
    RE: ComboBox ReadOnly

    Roberto,

    Set the combobox's DropDownStyle to DropDownList.

    Kerry Moorman


    "Roberto" wrote:
    [color=blue]
    > Hi,
    >
    > using vb 2005 I'd like to have a combobox in READONLY mode, like I have for
    > textbox.
    > Combobox only has enabled property. When I turn this property false I can
    > not select the text in the combo.
    >
    > Has anyone solved this problem?
    >
    > Thanks[/color]

    Comment

    • Roberto

      #3
      RE: ComboBox ReadOnly

      Dear Kerry,

      thanks for your reply, buti it is not what I'm asking for...maybe my
      question was not well explained!

      I need a combox in readonly mode from which I don't have to select, but from
      which I can highlight text. Taht's what I'm looking for!

      Thanks


      [color=blue]
      > Roberto,
      >
      > Set the combobox's DropDownStyle to DropDownList.
      >
      > Kerry Moorman
      >
      >
      > "Roberto" wrote:
      >[color=green]
      > > Hi,
      > >
      > > using vb 2005 I'd like to have a combobox in READONLY mode, like I have for
      > > textbox.
      > > Combobox only has enabled property. When I turn this property false I can
      > > not select the text in the combo.
      > >
      > > Has anyone solved this problem?
      > >
      > > Thanks[/color][/color]

      Comment

      • Kerry Moorman

        #4
        RE: ComboBox ReadOnly

        Roberto,

        I don't understand what you are asking for.

        Perhaps you can give an example of what would be in the combobox and how you
        want the user to be able to interact with the combobox.

        Kerry Moorman


        "Roberto" wrote:
        [color=blue]
        > Dear Kerry,
        >
        > thanks for your reply, buti it is not what I'm asking for...maybe my
        > question was not well explained!
        >
        > I need a combox in readonly mode from which I don't have to select, but from
        > which I can highlight text. Taht's what I'm looking for!
        >
        > Thanks
        >
        >
        >[color=green]
        > > Roberto,
        > >
        > > Set the combobox's DropDownStyle to DropDownList.
        > >
        > > Kerry Moorman
        > >
        > >
        > > "Roberto" wrote:
        > >[color=darkred]
        > > > Hi,
        > > >
        > > > using vb 2005 I'd like to have a combobox in READONLY mode, like I have for
        > > > textbox.
        > > > Combobox only has enabled property. When I turn this property false I can
        > > > not select the text in the combo.
        > > >
        > > > Has anyone solved this problem?
        > > >
        > > > Thanks[/color][/color][/color]

        Comment

        • Roberto

          #5
          RE: ComboBox ReadOnly

          I need a readonly property for ComboBox, similar to the read-only property of
          a textbox.

          In essence, make a combobox readonly...maki ng the combobox text not gray out
          but be disabled. There is no readonly property for a combobox like there is
          for a text box.

          Thanks


          "Kerry Moorman" wrote:
          [color=blue]
          > Roberto,
          >
          > I don't understand what you are asking for.
          >
          > Perhaps you can give an example of what would be in the combobox and how you
          > want the user to be able to interact with the combobox.
          >
          > Kerry Moorman
          >
          >
          > "Roberto" wrote:
          >[color=green]
          > > Dear Kerry,
          > >
          > > thanks for your reply, buti it is not what I'm asking for...maybe my
          > > question was not well explained!
          > >
          > > I need a combox in readonly mode from which I don't have to select, but from
          > > which I can highlight text. Taht's what I'm looking for!
          > >
          > > Thanks
          > >
          > >
          > >[color=darkred]
          > > > Roberto,
          > > >
          > > > Set the combobox's DropDownStyle to DropDownList.
          > > >
          > > > Kerry Moorman
          > > >
          > > >
          > > > "Roberto" wrote:
          > > >
          > > > > Hi,
          > > > >
          > > > > using vb 2005 I'd like to have a combobox in READONLY mode, like I have for
          > > > > textbox.
          > > > > Combobox only has enabled property. When I turn this property false I can
          > > > > not select the text in the combo.
          > > > >
          > > > > Has anyone solved this problem?
          > > > >
          > > > > Thanks[/color][/color][/color]

          Comment

          • Cor Ligthert [MVP]

            #6
            Re: ComboBox ReadOnly

            Roberto,

            Sorry I thought as well that Kerry had answered your question in his first
            reply

            Did you try what he told.

            Cor


            Comment

            • Eric Moreau

              #7
              Re: ComboBox ReadOnly

              See an article I wrote in July 2005 from http://emoreau.s2i.com/

              --


              HTH

              Éric Moreau, MCSD, Visual Developer - Visual Basic MVP
              Conseiller Principal / Senior Consultant
              Concept S2i inc. (www.s2i.com)


              "Roberto" <Roberto@discus sions.microsoft .com> wrote in message
              news:185033C9-0BAB-44D1-9A3A-037D14213DE4@mi crosoft.com...[color=blue]
              >I need a readonly property for ComboBox, similar to the read-only property
              >of
              > a textbox.
              >
              > In essence, make a combobox readonly...maki ng the combobox text not gray
              > out
              > but be disabled. There is no readonly property for a combobox like there
              > is
              > for a text box.
              >
              > Thanks
              >
              >
              > "Kerry Moorman" wrote:
              >[color=green]
              >> Roberto,
              >>
              >> I don't understand what you are asking for.
              >>
              >> Perhaps you can give an example of what would be in the combobox and how
              >> you
              >> want the user to be able to interact with the combobox.
              >>
              >> Kerry Moorman
              >>
              >>
              >> "Roberto" wrote:
              >>[color=darkred]
              >> > Dear Kerry,
              >> >
              >> > thanks for your reply, buti it is not what I'm asking for...maybe my
              >> > question was not well explained!
              >> >
              >> > I need a combox in readonly mode from which I don't have to select, but
              >> > from
              >> > which I can highlight text. Taht's what I'm looking for!
              >> >
              >> > Thanks
              >> >
              >> >
              >> >
              >> > > Roberto,
              >> > >
              >> > > Set the combobox's DropDownStyle to DropDownList.
              >> > >
              >> > > Kerry Moorman
              >> > >
              >> > >
              >> > > "Roberto" wrote:
              >> > >
              >> > > > Hi,
              >> > > >
              >> > > > using vb 2005 I'd like to have a combobox in READONLY mode, like I
              >> > > > have for
              >> > > > textbox.
              >> > > > Combobox only has enabled property. When I turn this property false
              >> > > > I can
              >> > > > not select the text in the combo.
              >> > > >
              >> > > > Has anyone solved this problem?
              >> > > >
              >> > > > Thanks[/color][/color][/color]


              Comment

              Working...