Advertisement

05.08.2008 at 12:35PM PDT, ID: 23387382
[x]
Attachment Details

Determine if comboBox selectedIndex is changed programatically or by user?

Asked by kidl33t in Visual Studio .NET 2005, VB Controls, Microsoft Visual Basic.Net

Tags: Microsoft, Visual Basic, 2005, Visual Studio

Hey all

I have a comboBox, and I am using the selectedIndexChanged event to know when it has been changed.  I populate it with a list of choices when the user enters a row in a datagridview.  This means that the selectedIndexChanged event fires everytime the user enters a new row in the datagridview, not when the user changes the comboBox as I intended.  I would like to be able to determine when the index is changed by the user, filtering out when it's changed by the program.

I read a reply by TheLearnedOne who said the key was to handle the mouseDown and mouseUp events, but I don't know how to do this.  Could anyone post a short example?

Thanks,

RobStart Free Trial
[+][-]05.08.2008 at 01:12PM PDT, ID: 21528056

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Studio .NET 2005, VB Controls, Microsoft Visual Basic.Net
Tags: Microsoft, Visual Basic, 2005, Visual Studio
Sign Up Now!
Solution Provided By: Priest04
Participating Experts: 2
Solution Grade: A
 
 
[+][-]05.08.2008 at 05:11PM PDT, ID: 21529550

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.09.2008 at 07:33AM PDT, ID: 21533200

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628