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#”
Tag: Windows form
How to create Splash screen in your windows application in .net
A splash screen is an image or screen that appears while your application or program is loading. It may also be used to describe an short introduction page of application that can contains version number, application title etc. Continue reading “How to create Splash screen in your windows application in .net”
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”
How to change Windows Form Icon using vb.net
You can easily change the default icon (left side in title bar) of windows form in your window application with custom icon image file. You can add it directly with the icon property. Continue reading “How to change Windows Form Icon using vb.net”
Display windows form as dialog in vb.net
In this example we will learn that how to use showdialog
method in vb.net to display a windows form. When we use this method then form will be open as dialog.
Continue reading “Display windows form as dialog in vb.net”