Still not following exactly what you want to do, like what do you mean by "and then program can call the varibale"? But it sounds like you just want to call a particular button's Click method? The buttons variables are already there (as Joel said), all you need to do is use them:
this.button1.Cllck();
this.button2.Click();
~~Bonnie DeWitt [C# MVP]
No comments:
Post a Comment