• Run the program in debug mode again (Debug/Start
• Click the ‘Settings’ menu item.
• Likewise, test the ‘Open Port’ and ‘Clear’ menu items.
• Close the debug form.
• Select Form1.cs and change the Clear menu function to:
private void clearToolStripMenuItem_
Click(object sender, EventArgs e)
richTextBox1.Text = “”;
richTextBox2.Text = “”;
• This will cause the text in the rich text boxes to be
• Run the program in Debug mode and type some text in
each rich TextBox. Then click the Clear menu item to see
• The source code is in the \Software\Chapter 4 - Simple
Terminal GUI \ directory.
If you are anxious to get a jump-start on next month’s
article, you can get the details for building the Simple
Terminal in the first six chapters of ‘Virtual Serial Port
Cookbook’ from www.smileymicros.com which are available
for free, or if you find yourself interested in the FTDI FT232R
chip used in the Arduino for serial communications, then
you can purchase the book and a projects kit from Nuts &
Volts. I will start a thread on www.avrfreaks.net titled
‘Smiley’s Simple Terminal‘ and I’ll try to check by several
times a week to see if there are any questions.
In this workshop, we went through the Microsoft
tutorials and learned just enough to be dangerous. We
also built the GUI for a Simple Terminal. In the next
workshop, we will build a dialog form (Settings) to get
data from the user for selecting a serial port, and set up
the UART. We will then learn to use the Serial Port Class,
and finally we will build an Arduino voltmeter that displays
the output on a PC. NV
January 2010 59