Hi,
I am trying to do a sample program on user control.But,I am stuck at the middle while doing.Can any one pls tell me how to go ahead..
My Scenario: I have created a user control which is having two text boxes and two buttons Add,Sub.
I have added this usercontrol project dll to the two winform projects.One is Test1 and Test2.In these two projects,I have added my
user control on the two forms.Now,I want to execute any of the test projects to perform Add and sub operations.But,I want to write the logic for Add and Sub methods in the
user control itself.
1)I know that ,we need to do it with the delegates and events,But dont know how..
2)when I am trying to select the Add button on the Test1 form,I am not able to select that button.Instead,the total user control is getting selected.In this case,how can I write the code here..?
Can anyone tell me how to do the above two points?
Thanks,
M.Srikrishna Murthy