combobox

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

    #1

    combobox

    Hi,

    i wanted to know how i can make a combo readonly. at the
    moment the user can edit the values in the combobox at
    runtime


  • William Ryan

    #2
    Re: combobox

    private void cboFacilities_K eyPress(object sender,
    System.Windows. Forms.KeyPressE ventArgs e)

    {

    e.Handled = true;

    }

    "Jade" <anonymous@disc ussions.microso ft.com> wrote in message
    news:011501c3ce 3e$40017f40$a40 1280a@phx.gbl.. .[color=blue]
    > Hi,
    >
    > i wanted to know how i can make a combo readonly. at the
    > moment the user can edit the values in the combobox at
    > runtime
    >
    >[/color]


    Comment

    • Peter van der Goes

      #3
      Re: combobox


      "Jade" <anonymous@disc ussions.microso ft.com> wrote in message
      news:011501c3ce 3e$40017f40$a40 1280a@phx.gbl.. .[color=blue]
      > Hi,
      >
      > i wanted to know how i can make a combo readonly. at the
      > moment the user can edit the values in the combobox at
      > runtime
      >
      >[/color]
      IIRC, if you change the Type property to Drop List, that will disable
      editing by the user. Hope this helps.

      --
      Peter [MVP Academic]


      Comment

      • jade

        #4
        Re: combobox

        hi Peter,
        how would i change this setting? i have looked in the
        comboboxes property list but i could not see it there

        thx[color=blue]
        >-----Original Message-----
        >
        >"Jade" <anonymous@disc ussions.microso ft.com> wrote in[/color]
        message[color=blue]
        >news:011501c3c e3e$40017f40$a4 01280a@phx.gbl. ..[color=green]
        >> Hi,
        >>
        >> i wanted to know how i can make a combo readonly. at the
        >> moment the user can edit the values in the combobox at
        >> runtime
        >>
        >>[/color]
        >IIRC, if you change the Type property to Drop List, that[/color]
        will disable[color=blue]
        >editing by the user. Hope this helps.
        >
        >--
        >Peter [MVP Academic]
        >
        >
        >.
        >[/color]

        Comment

        • Peter van der Goes

          #5
          Re: combobox


          "jade" <anonymous@disc ussions.microso ft.com> wrote in message
          news:090001c3ce 5a$ca76d5f0$a00 1280a@phx.gbl.. .[color=blue]
          > hi Peter,
          > how would i change this setting? i have looked in the
          > comboboxes property list but i could not see it there
          >
          > thx[/color]

          Are you using the Visual Studio .NET IDE? Type appears as a design time
          property in the Properties Window.

          --
          Peter [MVP Academic]


          Comment

          • Peter van der Goes

            #6
            Re: combobox


            "jade" <anonymous@disc ussions.microso ft.com> wrote in message
            news:090001c3ce 5a$ca76d5f0$a00 1280a@phx.gbl.. .[color=blue]
            > hi Peter,
            > how would i change this setting? i have looked in the
            > comboboxes property list but i could not see it there
            >
            > thx[color=green]
            > >-----Original Message-----[/color][/color]

            Check out
            The DropDownStyle property

            in the help.

            Here is an excerpt:

            The DropDownStyle property determines whether the user can enter a new value
            in the text portion, and whether the list portion is always displayed.

            Members
            Member name Description
            DropDown The text portion is editable. The user must click the arrow
            button to display the list portion.
            DropDownList
            Supported by the .NET Compact Framework.
            The user cannot directly edit the text portion. The user must click the
            arrow button to display the list portion.
            Simple The text portion is editable. The list portion is always
            visible.


            --
            Peter [MVP Academic]


            Comment

            Working...