30.04.2013 Views

1. Visual Basic - Curso completo teoria y practica

1. Visual Basic - Curso completo teoria y practica

1. Visual Basic - Curso completo teoria y practica

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Private Sub CmdNuevo_Click()<br />

TxtCurCodigo = “”<br />

TxtCurNombre = “”<br />

TxtCurVacantes = “”<br />

TxtCurProfe = “”<br />

CmdGrabar.Enabled = True: CmdNuevo.Enabled = False<br />

TxtCurCodigo.SetFocus<br />

End Sub<br />

Private Sub CmdCerrar_Click()<br />

Unload Me<br />

End Sub<br />

Para desarrollar la opción Editar de la tabla <strong>Curso</strong>, añada<br />

un nuevo formulario al proyecto. Luego, ubique los siguientes<br />

controles en el formulario:<br />

1 marco<br />

4 etiquetas<br />

4 cajas de texto<br />

4 botones de comando<br />

En seguida proceda a establecer las propiedades según se<br />

indica:<br />

Form1<br />

Frame1<br />

Nombre FrmManten<strong>Curso</strong>s<br />

Caption Editar curso<br />

BorderStyle 3-Fixed Dialog<br />

MDIChild True<br />

Nombre FraCodigo<br />

Caption<br />

Pág. 337

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!