I have a winform that when I created the standard toolbar was added automatically by VS. I have some special code I am processing when I click on plus icon to add a record. I am experiencing a problem but I think it is because the code that would normally fire when you select the + icon is firing in addition to my own code.
How do I turn this off so just my own code fires

How prevent code from firing
paxa
It sounds like you have two event handlers added to the button. If your button is named btnOne search your project for any code like:
btnOne.Clicked +=
You'll probably find two, one pointing to your code, the other to the VS generated code.
Chee Kin
Well it's easy enough to place a new button on the form and run my code from there. Is there a way to use the Insert icon (the little yellow plus icon) on my new button If so, how specifically do I do this
Timothy Coe
I did as you suggested but I don't think this is the problem. I see only one reference.
Normally, when a user clicks the bindingNavigatorAddItem button some code is fired that Visual Studio creates automatically when the binding navigator is added to the form. I did something similar to what I am doing now a couple of weeks ago in a VB form and it seems to me I had to do something to tell VS not to fire the code it normally would. I forget what I did, but I think I need something similar here.
I can use this exact same code (the code that I have written) and place it in a button on the form and things work fine.
If my hypothesis is correct I think the question is, "How do I tell VS not to fire the code it created when the binding navigator etc was added to the form."
If I put a button on the form and run the same code from it instead of the button on the toolstrip, things work fine.
Jeff Reynolds
If you open up the designer code (use Show All Files in the Solution Explorer, click the plus, and open the e.g. Form1.Designer.cs file), scroll down to the InitializeComponent procedure and look for a line like:
Me.BindingNavigator1.AddNewItem = Me.BindingNavigatorAddNewItem
Remove this line.
Alternatively you could use the BindingNavigator Designer by clicking on the BindingNavigator on your form, and clicking the "Edit Items..." link below the Properties. Then go to the BindingNavigatorAddNewItem and delete it. The downside of this one is that you'd then have to add a new button for your add, and set it up manually.