Skip to main content

Posts

Showing posts with the label button

How to write events in C#

We're going to display a simple message box when the button is clicked.So we need a coding window. To see the code for the button double click the button you added to the form. the coding window will open, and your cursor will be inside of the button code. It will look like this:   We want to display a message box, with some text on it. This is quite easy to do in C#. Position your cursor between the two curly brackets. Then type a capital letter "M". You'll see the IntelliSense list appear:            After type 'ess' You'll see the IntelliSense list appear:                                                                          When you have MessageBox selected, hit...