Private Sub TABLAToolStripMenuItem_Click(ByVal sender As System.Object, ByVa l e As System.EventArgs) Handles TABLAToolStripMenuItem.Click Dim form As New tabla form.MdiParent = Me form.Show() End Sub Private Sub VISORToolStripMenuItem_Click(ByVal sender As System.Object, ByVa l e As System.EventArgs) Handles VISORToolStripMenuItem.Click Dim form1 As New visor form1.MdiParent = Me form1.Show() End Sub Private Sub SALIRToolStripMenuItem1_Click(ByVal sender As System.Object, ByV al e As System.EventArgs) Handles SALIRToolStripMenuItem1.Click Dim x As Integer x = MsgBox("desea Salir", MsgBoxStyle.YesNo, "Augusto dice:") If (x = 6) Then End End If End Sub Private Sub MONTOToolStripMenuItem_Click(ByVal sender As System.Object, ByVa l e As System.EventArgs) Handles MONTOToolStripMenuItem.Click Dim form2 As New mantenimientoframe() form2.MdiParent = Me form2.Show() End Sub End Class //////////////////////////////////////////////////////////////////////////////// ////// codigo del visor Public Class tabla Private Sub btnreturn_Click(ByVal sender As System.Object, ByVal e As System .EventArgs) Handles btnreturn.Click Me.Close() End Sub Private Sub btnver_Click(ByVal sender As System.Object, ByVal e As System.Ev entArgs) Handles btnver.Click Dim n As Integer Dim i As Integer n = Val(txtn.Text) For i = 0 To 12 lista.Items.Add(n & "*" & i & "=" & i * n) Next End Sub Private Sub tabla_VisibleChanged(ByVal sender As Object, ByVal e As System.E ventArgs) Handles Me.VisibleChanged txtn.Focus() End Sub End Class //////////////////////////////////////////////////////////////////////////////// ////// codigo de Tabla mantenimiento Public Class mantenimientoframe Private Sub BindingNavigatorAddNewItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BindingNavigatorAddNewItem.Click End Sub Private Sub CodigoTextBox_KeyPress(ByVal sender As Object, ByVal e As System .Windows.Forms.KeyPressEventArgs) Handles CodigoTextBox.KeyPress If InStr(1, "0123456789" & Chr(8), e.KeyChar) = 0 Then e.KeyChar = "" End If End Sub Private Sub NombreTextBox_KeyPress(ByVal sender As Object, ByVal e As System .Windows.Forms.KeyPressEventArgs) Handles NombreTextBox.KeyPress If InStr(1, "qwertyuiopasdfghjklñzxcvbnmQWERTYUIOPASDFGHJKLÑZXCVBNM" & Chr(8 ), e.KeyChar) = 0 Then e.KeyChar = "" End If End Sub Private Sub SueldoTextBox_KeyPress(ByVal sender As Object, ByVal e As System .Windows.Forms.KeyPressEventArgs) Handles SueldoTextBox.KeyPress If InStr(1, "0123456789" & Chr(8), e.KeyChar) = 0 Then e.KeyChar = "" End If End Sub
Private Sub btnretornar_Click(ByVal sender As System.Object, ByVal e As Syst
em.EventArgs) Handles btnretornar.Click Me.Close() End Sub Private Sub mantenimientoframe_VisibleChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.VisibleChanged CodigoTextBox.Focus() End Sub
Private Sub mantenimientoframe_Load(ByVal sender As System.Object, ByVal e A
s System.EventArgs) Handles MyBase.Load End Sub End Class //////////////////////////////////////////////////////////////////////////////// ////// codigo de Tabla MULTIPLICACION Public Class tabla Private Sub btnreturn_Click(ByVal sender As System.Object, ByVal e As System .EventArgs) Handles btnreturn.Click Me.Close() End Sub Private Sub btnver_Click(ByVal sender As System.Object, ByVal e As System.Ev entArgs) Handles btnver.Click Dim n As Integer Dim i As Integer n = Val(txtn.Text) For i = 0 To 12 lista.Items.Add(n & "*" & i & "=" & i * n) Next End Sub
Private Sub tabla_VisibleChanged(ByVal sender As Object, ByVal e As System.E
ventArgs) Handles Me.VisibleChanged txtn.Focus() End Sub
Private Sub tabla_Load(ByVal sender As System.Object, ByVal e As System.Even
tArgs) Handles MyBase.Load End Sub End Class //////////////////////////////////////////////////////////////////////////////// //////// CODIGO DE LA CLASE MANTENIMIENTO Public Class mantenimiento Private m_codigo As String Private m_nombre As String Private m_sueldo As Double Public Sub New(ByVal codigo As String, ByVal nombre As String, ByVal sueldo As Double) Me.m_codigo = codigo Me.m_nombre = nombre Me.m_sueldo = sueldo End Sub Public Sub New() End Sub Public Property codigo() As String Get Return m_codigo End Get Set(ByVal value As String) m_codigo = value End Set End Property Public Property nombre() As String Get Return m_nombre End Get Set(ByVal value As String) m_nombre = value End Set End Property Public Property sueldo() As Double Get Return m_sueldo End Get Set(ByVal value As Double) m_sueldo = value End Set End Property End Class //////////////////////////////////////////////////////////////////////////////// ////7