Disable Click Event


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Disable Click Event

  1. #1
    Jody Kelsch Guest

    Disable Click Event


    Dan,

    Thanks for your input on the Combo Box & Mouse question I had. With your
    advice and the help of your API Book I got it figured out.

    I have another question.

    Is there any way to disable the Click event from firing on a combo box when
    the ListIndex property is set?

    Thank You,
    Jody
    Share on Google+

  2. #2
    Dan Appleman Guest

    Re: Disable Click Event

    That's a good question. I don't think there is a way to do this, because I
    believe the event is triggered internally when the ListIndex property is set -
    and not through any message scheme.
    What I'd probably do is set a form level variable every time I set ListIndex
    via code. In the click event, if the variable is set I know I did the setting
    in code. Then reset the variable in the click event.

    Best of luck

    Dan


    Jody Kelsch wrote:

    > Dan,
    >
    > Thanks for your input on the Combo Box & Mouse question I had. With your
    > advice and the help of your API Book I got it figured out.
    >
    > I have another question.
    >
    > Is there any way to disable the Click event from firing on a combo box when
    > the ListIndex property is set?
    >
    > Thank You,
    > Jody


    Share on Google+

Similar Threads

  1. Adding a Click Event to a Label
    By Hunterlmc in forum .NET
    Replies: 3
    Last Post: 04-07-2005, 10:53 PM
  2. How long before the next version??
    By _CAG in forum .NET
    Replies: 146
    Last Post: 08-12-2002, 10:40 PM
  3. Click Event in User Control
    By Carlos in forum .NET
    Replies: 2
    Last Post: 04-24-2002, 11:21 AM
  4. Windows Forms with listbox (Click Event)
    By Steve Hall in forum .NET
    Replies: 0
    Last Post: 04-03-2002, 04:44 AM
  5. Re: List Boxes? and the Click event
    By Ray Wimsett in forum VB Classic
    Replies: 0
    Last Post: 07-20-2000, 04:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center