Unidad 1. Actividad 1. Entregable. Crear Calculadora Grafica PDF

Title Unidad 1. Actividad 1. Entregable. Crear Calculadora Grafica
Course Programación 2
Institution Universidad del Caribe República Dominicana
Pages 11
File Size 366.6 KB
File Type PDF
Total Downloads 71
Total Views 126

Summary

Crear calculadora grafica , crear un nuevo proyecto basado en la plantilla de aplicación para Windows forms . Nombre del proyecto calculadora grafica....


Description

CALCULADORA GRAFICA CAPTURAS DE LA CALCULADORA

CODIGO using using using using using using using using using

System; System.Collections.Generic; System.ComponentModel; System.Data; System.Drawing; System.Linq; System.Text; System.Threading.Tasks; System.Windows.Forms;

namespace calculadora_grafica { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { } private void button9_Click(object sender, EventArgs e) {

} private void button2_Click(object sender, EventArgs e) { } private void button18_Click(object sender, EventArgs e) { } private void button7_Click(object sender, EventArgs e) { } } }

CODIGO DE LOS BOTONES DE LA CALCULADORA namespace calculadora_grafica { partial class Form1 { /// /// Variable del diseñador necesaria. /// private System.ComponentModel.IContainer components = null; /// /// Limpiar los recursos que se estén usando. /// /// true si los recursos administrados se deben desechar; false en caso contrario. protected override void Dispose(bool disposing) {

if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Código generado por el Diseñador de Windows Forms /// /// Método necesario para admitir el Diseñador. No se puede modificar /// el contenido de este método con el editor de código. /// private void InitializeComponent() { this.RESULTADO = new System.Windows.Forms.TextBox(); this.HISTORIAL = new System.Windows.Forms.Label(); this.button1 = new System.Windows.Forms.Button(); this.button9 = new System.Windows.Forms.Button(); this.button10 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button(); this.button4 = new System.Windows.Forms.Button(); this.button5 = new System.Windows.Forms.Button(); this.button6 = new System.Windows.Forms.Button(); this.button7 = new System.Windows.Forms.Button(); this.button8 = new System.Windows.Forms.Button(); this.button11 = new System.Windows.Forms.Button(); this.button12 = new System.Windows.Forms.Button(); this.button13 = new System.Windows.Forms.Button(); this.button14 = new System.Windows.Forms.Button(); this.button15 = new System.Windows.Forms.Button(); this.button16 = new System.Windows.Forms.Button(); this.button17 = new System.Windows.Forms.Button(); this.button18 = new System.Windows.Forms.Button(); this.button19 = new System.Windows.Forms.Button(); this.SuspendLayout(); // // RESULTADO // this.RESULTADO.BackColor = System.Drawing.SystemColors.Window; this.RESULTADO.Location = new System.Drawing.Point(41, 22); this.RESULTADO.Multiline = true; this.RESULTADO.Name = "RESULTADO"; this.RESULTADO.Size = new System.Drawing.Size(359, 63); this.RESULTADO.TabIndex = 0; // // HISTORIAL // this.HISTORIAL.AutoSize = true; this.HISTORIAL.Location = new System.Drawing.Point(47, 22); this.HISTORIAL.Name = "HISTORIAL"; this.HISTORIAL.Size = new System.Drawing.Size(0, 17); this.HISTORIAL.TabIndex = 1; // // button1 // this.button1.Font = new System.Drawing.Font("Arial Black", 16.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button1.Location = new System.Drawing.Point(41, 353); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(70, 60);

this.button1.TabIndex = 2; this.button1.Text = "1"; this.button1.UseVisualStyleBackColor = true; // // button9 // this.button9.Font = new System.Drawing.Font("Arial Black", 16.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button9.Location = new System.Drawing.Point(233, 353); this.button9.Name = "button9"; this.button9.Size = new System.Drawing.Size(70, 60); this.button9.TabIndex = 10; this.button9.Text = "3"; this.button9.UseVisualStyleBackColor = true; // // button10 // this.button10.Font = new System.Drawing.Font("Arial Black", 16.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button10.Location = new System.Drawing.Point(137, 353); this.button10.Name = "button10"; this.button10.Size = new System.Drawing.Size(70, 60); this.button10.TabIndex = 11; this.button10.Text = "2"; this.button10.UseVisualStyleBackColor = true; // // button2 // this.button2.Font = new System.Drawing.Font("Arial Black", 16.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button2.Location = new System.Drawing.Point(137, 263); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(70, 60); this.button2.TabIndex = 14; this.button2.Text = "5"; this.button2.UseVisualStyleBackColor = true; // // button3 // this.button3.Font = new System.Drawing.Font("Arial Black", 16.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button3.Location = new System.Drawing.Point(233, 263); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(70, 60); this.button3.TabIndex = 13; this.button3.Text = "6"; this.button3.UseVisualStyleBackColor = true; // // button4 // this.button4.Font = new System.Drawing.Font("Arial Black", 16.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button4.Location = new System.Drawing.Point(41, 263); this.button4.Name = "button4"; this.button4.Size = new System.Drawing.Size(70, 60); this.button4.TabIndex = 12; this.button4.Text = "4"; this.button4.UseVisualStyleBackColor = true; // // button5 //

this.button5.Font = new System.Drawing.Font("Arial Black", 16.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button5.Location = new System.Drawing.Point(137, 175); this.button5.Name = "button5"; this.button5.Size = new System.Drawing.Size(70, 60); this.button5.TabIndex = 17; this.button5.Text = "8"; this.button5.UseVisualStyleBackColor = true; // // button6 // this.button6.Font = new System.Drawing.Font("Arial Black", 16.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button6.Location = new System.Drawing.Point(233, 175); this.button6.Name = "button6"; this.button6.Size = new System.Drawing.Size(70, 60); this.button6.TabIndex = 16; this.button6.Text = "9"; this.button6.UseVisualStyleBackColor = true; // // button7 // this.button7.Font = new System.Drawing.Font("Arial Black", 16.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button7.Location = new System.Drawing.Point(41, 175); this.button7.Name = "button7"; this.button7.Size = new System.Drawing.Size(70, 60); this.button7.TabIndex = 15; this.button7.Text = "7"; this.button7.UseVisualStyleBackColor = true; // // button8 // this.button8.Font = new System.Drawing.Font("Arial Black", 16.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button8.Location = new System.Drawing.Point(330, 343); this.button8.Name = "button8"; this.button8.Size = new System.Drawing.Size(70, 6 0); this.button8.TabIndex = 18; this.button8.Text = "+"; this.button8.UseVisualStyleBackColor = true; // // button11 // this.button11.Font = new System.Drawing.Font("Arial Black", 16.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button11.Location = new System.Drawing.Point(330, 258); this.button11.Name = "button11"; this.button11.Size = new System.Drawing.Size(70, 60); this.button11.TabIndex = 19; this.button11.Text = "-"; this.button11.UseVisualStyleBackColor = true; // // button12 // this.button12.Font = new System.Drawing.Font("Arial Black", 16.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button12.Location = new System.Drawing.Point(330, 175); this.button12.Name = "button12"; this.button12.Size = new System.Drawing.Size(70, 60); this.button12.TabIndex = 20; this.button12.Text = "X";

this.button12.UseVisualStyleBackColor = true; // // button13 // this.button13.Font = new System.Drawing.Font("Arial Black", 16.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button13.Location = new System.Drawing.Point(330, 436); this.button13.Name = "button13"; this.button13.Size = new System.Drawing.Size(70, 60); this.button13.TabIndex = 21; this.button13.Text = "="; this.button13.UseVisualStyleBackColor = true; // // button14 // this.button14.Font = new System.Drawing.Font("Arial Black", 16.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button14.Location = new System.Drawing.Point(235, 436); this.button14.Name = "button14"; this.button14.Size = new System.Drawing.Size(70, 60); this.button14.TabIndex = 22; this.button14.Text = "."; this.button14.UseVisualStyleBackColor = true; // // button15 // this.button15.Font = new System.Drawing.Font("Arial Black", 16.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button15.Location = new System.Drawing.Point(41, 436); this.button15.Name = "button15"; this.button15.Size = new System.Drawing.Size(166, 60); this.button15.TabIndex = 23; this.button15.Text = "0"; this.button15.UseVisualStyleBackColor = true; // // button16 // this.button16.Font = new System.Drawing.Font("Arial Black", 16.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Poin t, ((byte)(0))); this.button16.Location = new System.Drawing.Point(41, 105); this.button16.Name = "button16"; this.button16.Size = new System.Drawing.Size(70, 60); this.button16.TabIndex = 24; this.button16.Text = "/"; this.button16.UseVisualStyleBackColor = true; // // button17 // this.button17.Font = new System.Drawing.Font("Arial Black", 16.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button17.Location = new System.Drawing.Point(137, 105); this.button17.Name = "button17"; this.button17.Size = new System.Drawing.Size(70, 60); this.button17.TabIndex = 25; this.button17.Text = "%"; this.button17.UseVisualStyleBackColor = true; // // button18 // this.button18.Font = new System.Drawing.Font("Arial Black", 16.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button18.Location = new System.Drawing.Point(233, 106);

this.button18.Name = "button18"; this.button18.Size = new System.Drawing.Size(70, 60); this.button18.TabIndex = 26; this.button18.Text = "C"; this.button18.UseVisualStyleBackColor = true; // // button19 // this.button19.Font = new System.Drawing.Font("Arial Black", 16.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button19.Location = new System.Drawing.Point(330, 105); this.button19.Name = "button19"; this.button19.Size = new System.Drawing.Size(70, 60); this.button19.TabIndex = 27; this.button19.Text = "...


Similar Free PDFs