In this post, we will discuss how we can call a button click from another button click in C#.Net. Remember this is available in windows application not in a web application.
It is easy to call a button click on another button click. Check the full code below:
public partial class Form1 : Form
private void btnFirst_Click(object sender, EventArgs e)
lblResult.Text = “This is the First Button!”;
private void btnSecond_Click(object sender, EventArgs e)
Here in the second button click event we are calling the first button click and the result will be shown as “This is the First Button!”. Check the figure for output.
You can also check my previous post:
-: FREE PDF e-Book Download :-
51 JSOM Examples in SharePoint Online
You May Also like the Following SharePoint Online Tutorials: