Hello. I have a form with 5 buttons on it. Setting up a routine in which all 5 buttons will be inside it rather than 5 separate ones. I've assigned a tag to each button and are attempting to do the following code below. Unfortunately the process never gets past the first IF regardless of button. I tried the .Name as well but that didn't work either, same outcome. I used the shipping button and stepped thru with a breakpoint and it gets to the first IF and shows tag is parentcompany and goes into it even tho the button used was shippingmethod tag. Below is what I have. I took all the code inbetween the brackets out to shorten it up.
Anyone with any thoughts on this?
Thanks...John
if (btnParentCompanyList.Tag.ToString() == "parentcompany")
{
}
else if (btnCompanyShippingMethodList.Tag.ToString() == "shippingmethod")
{