Porgramacion de vb
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
usingSystem.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();}
private void Linea_Click_1(object sender, EventArgs e)
{
Graphics G = Dibujo.CreateGraphics();Pen Lapiz = new Pen(Color.Red);
G.DrawLine(Lapiz, 10, 10, 50, 30);
}
private void button2_Click(object sender, EventArgs e)
{Graphics G = Dibujo.CreateGraphics();
Pen Lapiz = new Pen(Color.Red);
G.DrawRectangle(Lapiz, 60, 60, 50, 20);
}
private voidtextBox1_TextChanged(object sender, EventArgs e)
{
Graphics G = Dibujo.CreateGraphics();
Pen Lapiz = new Pen(Color.Red);
G.DrawLine(Lapiz, 100,0, 10, 100);}
private void archivoToolStripMenuItem_Click(object sender, EventArgs e)
{
}
private voidbutton5_Click(object sender, EventArgs e)
{
this.components = new System.ComponentModel.Container();
this.Size = new System.Drawing.Size(1024, 700);
this.Text= "Editor de Formas ";
this.BackColor = Color.White;
this.AutoScrollMinSize = new Size(1024, 700);
}
private void label2_Click(object sender,EventArgs e)
{
Graphics G = Dibujo.CreateGraphics();
Pen BluePen = new Pen(Color.Blue, 3);
G.DrawRectangle(BluePen, 200, 100, 100, 100);
}...
Regístrate para leer el documento completo.