![]() Next, from the Containers add two Group box and change its text to “Transmit Data” and “Received Data”. As you can see, I use cmb and btn prefix to refer to combo box and button same reason as above, for easier identification. Also, change the text of the two buttons, the first to “Connect” and the second to “Disconnect” and change their name to btnConnect and btnDisconnect. For the combo box change its name to cmbPort and cmbBaud for the purposes of easier identification when we will add the codes to our controls. ![]() Change the text of the first label to “Com Port:” and the second one to “Baud Rate:”. From the common Controls, add (2) two labels, (2) two combo box and (2) two buttons. Let’s start to add some controls to our form. Since this program is only a small program, we can disable the Maximize button by setting MaximizeBox value on the form’s property to false. This name will be the one that will be displayed on the title bar. Also, change its name, in this case VB.net Terminal – Philrobotics. This is the main form which will contain all other controls.Ĭlick on the toolbox to show the controls, you may want to click on the pin to disable the autohide featureĬlick on the form and change its name to frmMain (for easier identification specially when adding more forms). Select on New Project and select Windows Form Application and give the Project a name, in this case I named it Serial Port Interface.Ī blank form will be displayed named Form1. Start Visual Basic 2010 Express and you will be prompted with the Start Page Window The installer can be freely downloaded from Microsoft. ![]() In this tutorial is a quick start guide in communicating with the serial port using VB.net without any previous knowledge.īefore we start, VB.net 2010 must be installed. It is more favored than the parallel port for interfacing with the outside world because it require lesser wires and can go farther distance and can even be used with newer technologies such as Bluetooth using its serial port capability. The serial port on our computers are with us for quite sometime now. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |