Results 1 to 2 of 2

Thread: [2005] SelectChangedCommitted in combo box

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2001
    Posts
    1,331

    [2005] SelectChangedCommitted in combo box

    Hello,

    I want to detect when a user selects an item from a combo box, Normally I use the selectChangedCommitted event of the combo box. However, I am creating a PDA using WM 5.0, and that event is not available. They have only selectValueChanged and selectItemChanged.

    However, I want the event to fire only when the user has selected from the combo box.

    Is there a way to create an new event to do this, or is there another event I can use to do this.

    Many thanks in advance,

    Steve
    steve

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] SelectChangedCommitted in combo box

    Just use one of the existing events and perform a test within the handler to check whether the change was performed by the user or programmatically. You then set a Boolean variable each time you want to make a change and reset it after. That Boolean variable is what you test in the event handler.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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