In order to make a similar application, you need to know how to start with an application in C#. We will be using Windows Forms App because it’s simple and there’s online documentation in case we need it. For this project, it’s necessary to have Visual Studio and .NET framework (both can be downloaded from here). After downloading and installing the files we can start with the app.
First, it needs a new project. To create a new project, go to File→New → Project and Windows Forms App(.NET Framework).
And it will show a window with a box on it – this is an auto-generated form by the app. On the right side (Properties), you can locate the properties of the form which you can adjust according to your preference. On the left side (Toolbox), there are the functions that can be used for the app like buttons, checkboxes, serialport.
For test demonstration, we can make an app that displays a text when you click on it.
From the Toolbox, if you double click on the button it will automatically add the button on the upper-left corner. This is named “button1” because it auto-numbers the instances from the button class from .NET Framework. From button1 properties, we can change the Text for button1 to Click here!. Now, we need to write a code to make the button functional (double click on the button on the graphic interface):
public partial class Form1 : Form
private void button1_Click(object sender, EventArgs e)
MessageBox.Show("App made for DevicePlus");
The above code, when the user clicks on the button, a text will be displayed. The result is shown in Figure 7.