Validaciones y Procedimientos
Validaciones y Procedimientos
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApp4
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
MessageBox.Show("hola ");
button2.PerformClick();
if (textBox4.Text == "")
{
MessageBox.Show("te texbox no puede estar vacío ");
}
textBox4.Focus();
}
}
}
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApp4
{
public partial class Form1 : Form
{
float a, b, c;
public Form1()
{
InitializeComponent();
}
button2.PerformClick();
if (textBox4.Text == "")
{
MessageBox.Show("te texbox no puede estar vacío ");
}
textBox4.Focus();
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApp5
{
public partial class Form1 : Form
{
float total, precio, cantidad, devolucion, pago;
pago=Convert.ToInt32(textBox4.Text);
devolucion = pago - total;
textBox5.Text = devolucion.ToString();
}
public Form1()
{
InitializeComponent();
}
--use procedimientoscodigo i
--create table profesor(codigo int, nombres varchar(30))
--insert into profesor values (90, 'jose')