gracias vertex cuando pueda le hecho un ojo, ahorita estoy haciendo una aplicacion interesante
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes Menú
gracias vertex cuando pueda le hecho un ojo, ahorita estoy haciendo una aplicacion interesante


If SaveFileDialog1.ShowDialog = DialogResult.OK Then
RichTextBox1.SaveFile(SaveFileDialog1.FileName, RichTextBoxStreamType.PlainText)
End If
Form1.ActiveForm().Text() = "Guardado" + SaveFileDialog1.FileNameIf OpenFileDialog1.ShowDialog = DialogResult.OK Then
RichTextBox1.LoadFile(OpenFileDialog1.FileName, RichTextBoxStreamType.PlainText)
End If
Form1.ActiveForm().Text() = "Abierto" + OpenFileDialog1.FileName



If TextBox1.Text = "10" Then
TextBox2.Text = "Eres un Crack"
ElseIf TextBox1.Text = "9" Then
TextBox2.Text = "Te queda muy poco"
End If Function SoloNumeros(ByVal Keyascii As Short) As Short
If InStr("1234567890", Chr(Keyascii)) = 0 Then
SoloNumeros = 0
Else
SoloNumeros = Keyascii
End If
Select Case Keyascii
Case 8
SoloNumeros = Keyascii
Case 13
SoloNumeros = Keyascii
End Select
End FunctionPublic Class Form1
Inherits System.Windows.Forms.Form
Public KeyAscii As Short Dim KeyAscii As Short = CShort(Asc(e.KeyChar))
keyascii = CShort(SoloNumeros(keyascii))
If keyascii = 0 Then
e.Handled = True
End If