CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: combo box

  1. #1
    Join Date
    Jan 2000
    Location
    Saskatchewan, Canada
    Posts
    595

    combo box

    I want to populate combo2 from a criteria that is selected from combo1. I have put the combo2 populating routine in combo1 click() but this fires to often.I have used the combo lostfocus() but then user must wait for combo2 to populate.
    is there a way to detect when combo1 item has been selected but before it loses focus? My database is rather large and speed is important.
    thanks in advance.


  2. #2
    Join Date
    Feb 2000
    Location
    Ireland
    Posts
    808

    Re: combo box

    What do you mean that it fires too often?
    The click event should only fire when a user clicks on an item in a combo box or if you change its listindex in code.



  3. #3
    Join Date
    Jan 2000
    Location
    MO, USA
    Posts
    1,506

    Re: combo box

    There is a new property in VB6 called CausesValidation. Set this to true and then you will get a Validate event, which fires before LostFocus.

    Good luck,
    John

    John Pirkey
    MCSD
    www.ShallowWaterSystems.com
    John Pirkey
    MCSD (VB6)
    http://www.stlvbug.org

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured