Documentos de Académico
Documentos de Profesional
Documentos de Cultura
1. Para realizar este proyecto primero que todo se tenia que saber si el pc tenia visual BASIC despus de eso se abre y empezamos a desarrollar nuestro proyecto Para empezar realizamos un men compuestos por: commandbutton, textbox, label e imgenes
ejemplo:
5. Ahora si la explicacin de cmo se hizo: 1. Tomamos una forma y pegamos unos button
5. Y ya al final se decora como mas te gusta y para volver o pasar al siguiente form dars el siguiente cdigo: Private Sub Image6_Click() Menu.Show Unload Me y volvers al men
End Sub
Cdigo
Private Sub Form_Load() Me.Move (Screen.Width - Width) / 2, (Screen.Height - Height) / 2 End Sub
End Sub
Private Sub Image2_Click() d = (Val(txta.Text) * Val(txte.Text) - Val(txtb.Text) * Val(txtd.Text)) Dim q As Double lblresultx.Caption = (Val(txtc.Text) * Val(txte.Text) - Val(txtb.Text) * Val(txtf.Text)) / d lblresulty.Caption = (Val(txta.Text) * Val(txtf.Text) - Val(txtc.Text) * Val(txtd.Text)) / d If Val(lblresultx.Caption) And Val(lblresulty.Caption) = 0 Then lblresultx.Caption = "Esta ecuacion no tiene solucion" lblresulty.Caption = "Esta ecuacion no tiene solucion" Else End If End Sub Masa del aire en un neumtico
Cdigo
End Sub
Private Sub Image3_Click() pma.Caption = Val(nv.Text) * (Val(pr.Text) * Val(v.Text) / 0.37 * Val(t.Text)) + 460 End Sub
Cdigo
End Sub
Private Sub Image3_Click() lbliva.Caption = (Val(txta1.Text) + Val(txta2.Text) + Val(txta3.Text) + Val(txta4.Text)) * 0.16 lblresult.Caption = (Val(txta1.Text) + Val(txta2.Text) + Val(txta3.Text) + Val(txta4.Text)) * 0.16 + Val(txta1.Text) + Val(txta2.Text) + Val(txta3.Text) + Val(txta4.Text) End Sub Diputados
End Sub
Private Sub Image3_Click() favor.Caption = (Val(txt2.Text) * 100 / Val(txt1.Text)) contra.Caption = (Val(txt3.Text) * 100 / Val(txt1.Text)) neutro.Caption = (Val(txt4.Text) * 100 / Val(txt1.Text)) End Sub Areas
Cdigo
End Sub
End Sub
End Sub
Private Sub Image7_Click() t.Caption = Val(B.Text) * Val(H.Text) / 2 AC.Caption = Val(L.Text) * Val(L.Text) ACIR.Caption = Val(R.Text) * Val(R.Text) * 3.1416 AR.Caption = Val(BR.Text) * Val(HR.Text) End Sub Promedio de notas
Cdigo
End Sub
Private Sub Image4_Click() PROMEDIO.Caption = Val(NUNO.Text) + Val(NDOS.Text) + Val(NTRES.Text) / 3 End Sub Edad de personas
End Sub
Private Sub Image5_Click() edad.Caption = Val(aa.Text) - Val(an.Text) End Sub Salario de un obrero
Cdigo
End Sub
End Sub
s.Caption = s.Caption * Val(o.Text) * 2 Else Val (ch.Text) < 40 s.Caption = s.Caption * Val(o.Text) End If
End Sub
Private Sub Image3_Click() v.Caption = (Val(d.Text) / Val(ti.Text)) If Val(v.Caption) > 80 Then v.Caption = v.Caption & "km/h Ha exedido el limite de velocidad, cometio una infraccion " Else v.Caption = v.Caption & "km/h No ha exedido el limite de velocidad, sigue asi " End If
End Sub
Censo nacional
Cdigo
Menu.Show Unload Me
End Sub
Private Sub Image4_Click() lblprimaria.Caption = (Val(primaria.Text) * 100 / Val(encuestados.Text)) & "% estudiaron primaria" lblsecundaria.Caption = (Val(secundaria.Text) * 100 / Val(encuestados.Text)) & "% estudiaron secundaria" lbltecnica.Caption = (Val(tecnica.Text) * 100 / Val(encuestados.Text)) & "% estudiaron una carrera tecnica" lblprofesionales.Caption = (Val(profesionales.Text) * 100 / Val(encuestados.Text)) & "% hicieron estudios profesionales" lblposgrado.Caption = (Val(posgrado.Text) * 100 / Val(encuestados.Text)) & "% hicieron posgrado" End Sub
End Sub
The end
HECHO POR: JUAN SEBASTIAN BERNAL HERRERA GRADO: 10-2