Click event of a Button on Click event of another button in C#

The following code example demonstrates how to call the Click event of a Button on Click event of another button. The following code assumes that two Button and one TextBox controls have been instantiated on a form. On the click of the button1, we will generate the click event of the button2 if the the value of the textbox1 is numeric. Continue reading “Click event of a Button on Click event of another button in C#”

How to resize windows form at runtime in .net

 
You can change the size of the windows form at run time in many ways. You can change both the height and the width of the form programmatically by Size property, or you can set the Height or Width properties individually. You can also change the size using the Windows Forms Designer.
Continue reading “How to resize windows form at runtime in .net”