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:
Download FREE SharePoint 2019 Installation PDF Guide
This FREE PDF contains, Steps by step guide to install SharePoint 2019 Preview, prerequisites, hardware and software new features. First impression to SharePoint Server 2019 new modern site, modern lists and modern document libraries.
You May Also like the Following SharePoint Online Tutorials: