listbox drop style

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

    #1

    listbox drop style

    in visual studio 2005 express VB I found mention of drop style for listbox
    but so far my searches came up empty as to how and what they are.

    I was to set height and I figure I can probably do something with setting
    height during the focus events to simulate drop down list

    However if there are drop down list style or dropdown list then it would be
    better for to use them.


  • Kerry Moorman

    #2
    RE: listbox drop style

    GS,

    Perhaps you are thinking of the combobox with its DropDownStyle property,
    which can be set to DropDownList?

    Kerry Moorman


    "GS" wrote:
    in visual studio 2005 express VB I found mention of drop style for listbox
    but so far my searches came up empty as to how and what they are.
    >
    I was to set height and I figure I can probably do something with setting
    height during the focus events to simulate drop down list
    >
    However if there are drop down list style or dropdown list then it would be
    better for to use them.
    >
    >
    >

    Comment

    • gs

      #3
      Re: listbox drop style

      thank you.

      combobox would have been ok except I don't' want people to enter arbitrary
      text
      I tried using droplistbox with height adjusted by focus events. Functionally
      OK but visually is less than desirable. The display text is not the
      selected item.


      "Kerry Moorman" <KerryMoorman@d iscussions.micr osoft.comwrote in message
      news:FD294495-FA60-4FF1-9976-2B2C013B024B@mi crosoft.com...
      GS,
      >
      Perhaps you are thinking of the combobox with its DropDownStyle property,
      which can be set to DropDownList?
      >
      Kerry Moorman
      >
      >
      "GS" wrote:
      >
      >in visual studio 2005 express VB I found mention of drop style for
      >listbox
      >but so far my searches came up empty as to how and what they are.
      >>
      >I was to set height and I figure I can probably do something with setting
      >height during the focus events to simulate drop down list
      >>
      >However if there are drop down list style or dropdown list then it would
      >be
      >better for to use them.
      >>
      >>
      >>

      Comment

      • Jeff Gaines

        #4
        Re: listbox drop style

        On 29/09/2006 in message <#JgOWbB5GHA.14 92@TK2MSFTNGP05 .phx.gblgs wrote:
        >combobox would have been ok except I don't' want people to enter arbitrary
        >text
        The Combo Box has 3 different styles, one of them doesn't allow entry of
        text, it just allows picking from existing items.

        --
        Jeff Gaines

        Comment

        • GS

          #5
          Re: listbox drop style

          thank you


          So I will use DropDownList and just populate the items for the cobobox, use
          the selectedIndex to identify what is selected

          This will save me the hassle of figuring to scroll the listbox

          "Jeff Gaines" <whitedragon@ne wsgroups.nospam wrote in message
          news:xn0eru7ql8 uko8t000@msnews .microsoft.com. ..
          On 29/09/2006 in message <#JgOWbB5GHA.14 92@TK2MSFTNGP05 .phx.gblgs wrote:
          >
          combobox would have been ok except I don't' want people to enter
          arbitrary
          text
          >
          The Combo Box has 3 different styles, one of them doesn't allow entry of
          text, it just allows picking from existing items.
          >
          --
          Jeff Gaines

          Comment

          Working...