Unit I addresses the use of the Visual Studio development environment; constructing forms using a variety of controls/elements; naming the forms and elements; including multiple forms in a single project; and sharing projects via e-mail. This activity was designed to reinforce the use of common form elements rather than introducing new ones. (Other activities will reinforce other controls.)
I encourage you to work with a partner, either using pair programming (one person types and one person watches for mistakes and swap roles every 30 minutes or so) or working side by side on separate computers. This way each person interacts with the code on each item—the only way to learn the material.
The goal is to produce four forms in one project—Start, Numerics, Strings, and Booleans. Each (non-start) form will then be used to do the learning/practice activities for Unit II & III. Note that I am in the process of reviewing the Unit II and III practice activities so some discrepancies may show up between the forms we create and those activities.
Forms such as this are used to connect to the other forms via buttons and, perhaps, to transfer some data to them.
This form provides form elements that will be used to work with numeric data—"simple" problems involving input, processing and output (IPO).
This form provides form elements that will be used to work with textural data (called strings—"simple" IPO problems.
This form provides form elements that will be used in Unit III to work with Boolean data—"simple" IPO problems.
Sometime after creating the "Start" form, set it to be the start form of the project.
The forms and form elements/controls have the following property values.
Web | RosyBrown
Lucida Sansof some size
Web | PowderBlue
Web | Navy
Remember that you can copy and paste controls, either one at a time or several/many at a time. They will typically retain all their properties except for Name including relative positioning (if several controls are selected and copied). The "Exit" button can be copied from the first/start form and pasted into the others. It will retain most of its property values which can be revised as needed.
As you work, remember that the purpose is familiarization with forms, form elements, and their properties as well as thinking in terms of problems and problem tasks. Do not worry about getting things exactly, precisely as in the diagrams but do take care to get it close to what is shown and to be neat.
You should provide names for all the windows you create and controls you add to them. You may use the conventional prefixes if you wish, i.e.,
btn for buttons,
txt for text boxes,
grp for group boxes,
rdo for radio buttons,
chk for checkboxes, etc. (I should see nothing with a name like
TextBox1, etc.) Remember you can select several elements/controls and use the Format menu to center them on the page, align them together, etc.
Make note of any problems or questions you have as you work on these. We can discuss them in class, during office hours, or via e-mail. To maximize the learning experience with these examples consider how you might change them to make them "better", functionally or aesthetically.
Have fun! Feel free to embellish what you see. The goal is to familiarize yourself with the form objects and their properties (such as font, size, color etc.). You might add a VB form for some application or problem from your discipline or that is of personal interest. Doing so might allow you to try out some other form element(s) that you are curious about—scroll down the tool box to see all the possibilities.
Don't forget to use Save All. And, use it early and at least after completing each new form.
If you have problems and want me to examine what is going on
Even if you don't have problems, zip the file as described above and send it to yourself (or a friend) to make sure you know how to zip the files correctly and unzip the file and open the project.
Remember that the learning activities are not graded. Completing them will, however, be essential for demonstrating competency (passing the competency demonstration quizzes). You can tell if you created the project as asked by comparing your forms to the samples, checking to make sure you named everything, and making sure the start form is identified as requested. You are more than welcome to show your completed project to me if you wish (for a minute amount of extra credit).