hacker


Ingresar con nombre de usuario, contraseña y duración de la sesión
| Portal Hacker | Editorial | Descargas | Ezine |
Inicio Ayuda Ingresar Registrarse
05 de Julio de 2008, 11:31:51
Noticias: Te gusta el nuevo diseño?
Opina al respecto en:
Para ver este enlace Registrate o Inicia Sesion
Este Tema

+  Foros pOrtal Hacker
|-+  Programacion
| |-+  Programación en general
| | |-+  Visual Basic
| | | |-+  Codigo Abierto
| | | | |-+  Mi calculadora en vb6
0 Usuarios y 1 Visitante están viendo este tema. « anterior próximo »
Páginas: [1] Ir Abajo Imprimir
Autor Tema: Mi calculadora en vb6  (Leído 242 veces)
carlmycol
NZ4
****
Desconectado Desconectado

Mensajes: 934


¡Dame 10 Hackers y Dominare al Mundo!


Ver Perfil
« : 27 de Marzo de 2008, 02:34:19 »

Bueno yo soy un amante de las calculadoras y hago una cada vez que me voy a dedicar varios meses a un lenguaje hasta ahora me he dedicado bastante a dos y aqui les traigo la que esta hecha en vb6 Grin

Código:
Private Sub Command1_Click()
Text2 = "+"
End Sub

Private Sub Command10_Click()
If Option1.Value = True Then
Text5 = Text5 + "5"
End If
If Option2.Value = True Then
Text3 = Text3 + "5"
End If
End Sub

Private Sub Command11_Click()
If Option1.Value = True Then
Text5 = Text5 + "4"
End If
If Option2.Value = True Then
Text3 = Text3 + "4"
End If
End Sub

Private Sub Command12_Click()
If Option1.Value = True Then
Text5 = ""
End If
If Option2.Value = True Then
Text3 = ""
End If
End Sub

Private Sub Command13_Click()
Text4 = ""
End Sub

Private Sub Command14_Click()
If Option1.Value = True Then
Text5 = Text5 + "7"
End If
If Option2.Value = True Then
Text3 = Text3 + "7"
End If
End Sub

Private Sub Command15_Click()
If Option1.Value = True Then
Text5 = Text5 + "8"
End If
If Option2.Value = True Then
Text3 = Text3 + "8"
End If
End Sub

Private Sub Command16_Click()
If Option1.Value = True Then
Text5 = Text5 + "9"
End If
If Option2.Value = True Then
Text3 = Text3 + "9"
End If
End Sub

Private Sub Command17_Click()
If Option1.Value = True Then
Text5 = Text5 + "0"
End If
If Option2.Value = True Then
Text3 = Text3 + "0"
End If
End Sub

Private Sub Command18_Click()
Form2.Show
End Sub

Private Sub Command2_Click()
Text2 = "*"
End Sub

Private Sub Command3_Click()
Text2 = "-"
End Sub

Private Sub Command4_Click()
Text2 = "/"
End Sub

Private Sub Command5_Click()
If Text5 = "" Or Text3 = "" Or Text2 = "" Then
Beep
MsgBox "Te falta algunos de los Datos requeridos para operar"
End If
If Text5 <> "" Then
If Text3 <> "" Then
If Text2 = "+" Then
Text4 = Abs(Text5) + Abs(Text3)
End If
If Text2 = "-" Then
Text4 = Text5 - Text3
End If
If Text2 = "*" Then
Text4 = Text5 * Text3
End If
If Text2 = "/" Then
Text4 = Text5 / Text3
End If
End If
End If
End Sub

Private Sub Command7_Click()
If Option1.Value = True Then
Text5 = Text5 + "2"
End If
If Option2.Value = True Then
Text3 = Text3 + "2"
End If
End Sub

Private Sub Command8_Click()
If Option1.Value = True Then
Text5 = Text5 + "3"
End If
If Option2.Value = True Then
Text3 = Text3 + "3"
End If
End Sub

Private Sub Command9_Click()
If Option1.Value = True Then
Text5 = Text5 + "6"
End If
If Option2.Value = True Then
Text3 = Text3 + "6"
End If
End Sub

Private Sub Form_Load()
veces = 1
End Sub

Private Sub Command6_Click()
If Option1.Value = True Then
Text5 = Text5 + "1"
End If
If Option2.Value = True Then
Text3 = Text3 + "1"
End If
End Sub

Ahora quiero aclarar que cuando estaba haciendo la calculadora uno de los textbox no se donde quedo xD y tube que poner otro entonces el primer numero quedo en el textbox5 en vez de textbox uno xD

Aqui un pantallaso!



Bueno hasta ahora he aprendido el lenguaje intuitivamente sin ver ningun manual

VB6 = cool
« Última modificación: 27 de Marzo de 2008, 02:51:47 por carlmycol » En línea

Sun Web Studio 80% (Pausado)
Snorlax web builder 10% (Pausado)
Dark Trojan 30% (Programando)
JJoiner v2 Final 50% (Pausado)
BDB Bat Builder 10% (Pausado)


Mi tiro CSS para el blues
Para ver este enlace Registrate o Inicia Sesion
Aqui

Programa favorito: notepad =P


No respondo por MP, para eso esta el foro
Dj_Dexter
NZ3
***
Desconectado Desconectado

Mensajes: 569


Lo que haces ahora se vera en el futuro


Ver Perfil
« Respuesta #1 : 01 de Abril de 2008, 07:40:07 »

Esta muy buena la calculadora  kool

Saludos!!!
En línea


kakshi_sharingan
NZ2
**
Desconectado Desconectado

Mensajes: 123



Ver Perfil WWW
« Respuesta #2 : 01 de Abril de 2008, 07:43:29 »

cuanto tiempo te demorastes
En línea



Para ver este enlace Registrate o Inicia Sesion
carlmycol
NZ4
****
Desconectado Desconectado

Mensajes: 934


¡Dame 10 Hackers y Dominare al Mundo!


Ver Perfil
« Respuesta #3 : 02 de Abril de 2008, 12:35:05 »

Gracias. Me tarde como 1 hora halland maneras para que agregara numero, el resto fue facil Tongue

salu2
En línea

Sun Web Studio 80% (Pausado)
Snorlax web builder 10% (Pausado)
Dark Trojan 30% (Programando)
JJoiner v2 Final 50% (Pausado)
BDB Bat Builder 10% (Pausado)


Mi tiro CSS para el blues
Para ver este enlace Registrate o Inicia Sesion
Aqui

Programa favorito: notepad =P


No respondo por MP, para eso esta el foro
>> s E t H <<
NZ3
***
Desconectado Desconectado

Mensajes: 730


jelou guorld


Ver Perfil WWW
« Respuesta #4 : 02 de Abril de 2008, 01:06:02 »

esta muy buena
En línea


Para ver este enlace Registrate o Inicia Sesion
MI FIRMA Tongue


Para ver este enlace Registrate o Inicia Sesion
Citar
Cue3008 dice:
algun dia El Polaco se fusionara con el PUNCHI-PUNCHI, permitiendo que Chetos y Villeros convivan en paz por los siglos de los siglos, amen
Cita de: vassily
Me banneare por 10 minutos
Update: No me puedo bannear =(

Para ver este enlace Registrate o Inicia Sesion
Mi guia de reacion de worms en vb parte 1

Para ver este enlace Registrate o Inicia Sesion
Mi guia de reacion de worms en vb parte 2


Para ver este enlace Registrate o Inicia Sesion
Bajar VB6 - Librerias - Tools para programar

Para ver este enlace Registrate o Inicia Sesion
Guias de VB

Queres un programa para compilar? click
Para ver este enlace Registrate o Inicia Sesion
AQUI
y mira los post fijos
carlmycol
NZ4
****
Desconectado Desconectado

Mensajes: 934


¡Dame 10 Hackers y Dominare al Mundo!


Ver Perfil
« Respuesta #5 : 02 de Abril de 2008, 01:58:22 »

Gracias men y lo mejor es que esta hecha en vb6 porque la 1 estaba en pascal :S Tongue

salu2
En línea

Sun Web Studio 80% (Pausado)
Snorlax web builder 10% (Pausado)
Dark Trojan 30% (Programando)
JJoiner v2 Final 50% (Pausado)
BDB Bat Builder 10% (Pausado)


Mi tiro CSS para el blues
Para ver este enlace Registrate o Inicia Sesion
Aqui

Programa favorito: notepad =P


No respondo por MP, para eso esta el foro
Páginas: [1] Ir Arriba Imprimir 
« anterior próximo »
Ir a:  


Ingresar con nombre de usuario, contraseña y duración de la sesión

Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC hacker

Juegos gratis - Articulos PHP - Juegos - Trucos - Letras - Juegos - Juegos Online