Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

WinForms Application Area Calculator C#

Seeker
Seeker 


Create a WinForms application that will calculate the area of a square and output the the answer to a read only textbox. Code should be written in C#. Attachments
Tags Clarifications

Answers

WinForms C# Area Calculator

Seeker
Seeker 



Visual Studio solution file is attached.
...
Attachments
AreaCalculator.zip (44 K) Download


















Preview
System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace AreaCalculator { public partial class Form1 : Form { public Form1() { InitializeComponent(); if (rdoSquare.Checked) tbWidth.Enabled = false; } private void button1_Click(object sender,

Preview
this.groupBox1.Controls.Add(this.rdoSquare); this.groupBox1.Controls.Add(this.rdoRectangle); this.groupBox1.Location = new System.Drawing.Point(20, 12); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(182, 63); this.groupBox1.TabIndex = 0; this.groupBox1.TabStop = false; this.groupBox1.Text = "Shape"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(36, 95); this.label1.Name

Preview
C:\Users\Brad\Documents\Visual Studio 2010\Projects\AreaCalculator\AreaCalculator\obj\x86\Debug\ResolveAssemblyReference.cache C:\Users\Brad\Documents\Visual Studio 2010\Projects\AreaCalculator\AreaCalculator\obj\x86\Debug\AreaCalculator.Form1.resources C:\Users\Brad\Documents\Visual Studio

Preview
</summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1());

Preview
visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("ae1c6231-36ef-4e1d-8850-aa0632f6ea62")]

Preview
resource class, for looking up localized strings, etc. /// </summary> // This class was auto-generated by the StronglyTypedResourceBuilder // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the

Preview
this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ namespace AreaCalculator.Properties { [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]

Screenshots
Purchase Answer