appilcations Create a C# Windows Forms Application Create a New Project called w
ID: 2247714 • Letter: A
Question
appilcations Create a C# Windows Forms Application Create a New Project called windowsuI in Solution Lab2 1. From the File menu, choose New > Project 2. From the New Project dialog box, choose Visual C# Windows Application 3. Enter WindowsU 4. Check Create directory for solution 5. Click OK 6. Using Visual Studio (any version) Solution Explorer pane, right click the file Form1.cs and rename the filename to MainEormacs Verify that the corresponding class name was changed from Form1 to MainForm oExplanation / Answer
MainForm.cs ----------- using System; using System.Drawing; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class MainForm : Form { public MainForm() { InitializeComponent(); } private void MainForm_Load(object sender, EventArgs e) { this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))),((int)(((byte)(255)))),((int)(((byte)(192))))); this.ClientSize = new System.Drawing.Size(234, 262); this.Icon = System.Drawing.Icon)(resources.GetObject(".Icon"))); this.Name = "MainForm"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Chatter Box"; } } }
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.