Use a text editor (not Visual Studio) to create a c# source file that meets the following requirements. Compile and run the file from the Visual Studio command prompt.
Add a class to the c# file that extends the Form
class.
System
namespace.Size
(System.Drawing.Size
) of the form so your panels look good. Panel
to your form.
System.Drawing.Color
value (like Red, Green, Blue, etc.).DockStyle
enumeration to set the value. Use the Height
and Width
properties to control the original size of the form before it is docked.
Label
to the panel. Set the value of the label to the name, that was passed in the constructor.Panel
to your form.
System.Drawing.Color
value (like Red, Green, Blue, etc.). Use a different color for this panel.DockStyle
enumeration to set the value.
Label
to the panel. Set the value of the label to Comment: . Do not display the label at point (0,0) in the panel. Use the Top
and Left
properties to position the label.TextBox
to the panel.
AnchorStyles
enumeration to set the values, use the |
operator to or more than one value together.Button
to the panel.
Add a class to the c# file that has a main method. The Main
method in a c# program can be overloaded with a String[] args
parameter. This argument contains the command line arguments.
Application
class to run the application with your form as the main form.
To compile and run the program, open the command line window that can be accessed from the Visual Studio Tools folder.
Compile the c# file with the cs
compiler.
Run the command with several different command line arguments. Also run it with no command line arguments.
Create a Windows Forms Application in Visual Studio. The project will use the user settings to save the size and location of the main form. It will also implement a modeless dialog with data exchange.
Create user settings for the size of the form and the desktop location of the form.
Create a dialog that will be opened modelessly.
Create a main form that will have a group box and a list view.
The quiz for this assignment will be on Wednesday, September 16. We will review the solution to this assignment in class on Monday, September 14.