Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Is there a button property that indicates if the button was clicked?

$
0
0

Hi,

VS2013, Visual Basic

I have a situation where a 'selected index changed' event is firing when my 'button click' event fires, and the 'selected index changed' event is going first.  I'm not sure I understand why the button click is causing the selected index change, but it is what is.

I would like to test inside the 'selected index changed' event to see if it was a button click that caused the 'selected index changed' event to fire, and if so bypass the remaining code in the 'selected index changed' event.

So I would like to test a button property that tells me if the button was clicked.  Does such a property exist?

Thanks.

Best Regards,

Alan


Viewing all articles
Browse latest Browse all 2535

Trending Articles