Q: Cancelling a combo dropdown

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

    Q: Cancelling a combo dropdown

    Hi

    Is there a way to prevent the combo displaying its list of items when the
    "combo arrow" is clicked?

    The problem I'm trying to resolve is that depending on a Boolean value,
    which is set according to other items on the form, I want to prevent the
    combo from being used. I suppose I could set the combo to be disabled but
    I'm wondering if there is something like

    e.Cancel = True

    within a combo event which I could use?

    Thanks in advance


  • Ahmed

    #2
    Re: Q: Cancelling a combo dropdown

    I remember I have done this once. You need to extend the combobox
    control and override the WndProc method.

    G .Net wrote:[color=blue]
    > Hi
    >
    > Is there a way to prevent the combo displaying its list of items when the
    > "combo arrow" is clicked?
    >
    > The problem I'm trying to resolve is that depending on a Boolean value,
    > which is set according to other items on the form, I want to prevent the
    > combo from being used. I suppose I could set the combo to be disabled but
    > I'm wondering if there is something like
    >
    > e.Cancel = True
    >
    > within a combo event which I could use?
    >
    > Thanks in advance[/color]

    Comment

    • C-Services Holland b.v.

      #3
      Re: Q: Cancelling a combo dropdown

      G .Net wrote:[color=blue]
      > Hi
      >
      > Is there a way to prevent the combo displaying its list of items when the
      > "combo arrow" is clicked?
      >
      > The problem I'm trying to resolve is that depending on a Boolean value,
      > which is set according to other items on the form, I want to prevent the
      > combo from being used. I suppose I could set the combo to be disabled but
      > I'm wondering if there is something like
      >
      > e.Cancel = True
      >
      > within a combo event which I could use?
      >
      > Thanks in advance
      >
      >[/color]

      If you don't want them to use it, disable it. Why would you need
      something else? Hide it could be an option. Things you can't use that
      aren't visible help the user to focus on what he can do.


      --
      Rinze van Huizen
      C-Services Holland b.v

      Comment

      Working...