📄 ecuacion_2do_grado.frm
字号:
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00004080&
Height = 450
Left = 6720
TabIndex = 7
Text = "0"
ToolTipText = "Ingrese unicamente n鷐eros enteros"
Top = 5160
Width = 975
End
Begin VB.ComboBox cmb_signo_coef_b
BeginProperty Font
Name = "Times New Roman"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00004080&
Height = 405
Left = 1200
Style = 2 'Dropdown List
TabIndex = 4
Top = 5160
Width = 735
End
Begin VB.ComboBox cmb_signo_exp_b
BeginProperty Font
Name = "Times New Roman"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00004080&
Height = 405
Left = 5880
Style = 2 'Dropdown List
TabIndex = 6
Top = 5160
Width = 735
End
Begin VB.ComboBox cmb_signo_exp_a
BeginProperty Font
Name = "Times New Roman"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00004080&
Height = 405
Left = 5880
Style = 2 'Dropdown List
TabIndex = 2
Top = 4440
Width = 735
End
Begin VB.ComboBox cmb_signo_coef_a
BeginProperty Font
Name = "Times New Roman"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00004080&
Height = 405
Left = 1200
Style = 2 'Dropdown List
TabIndex = 29
Top = 4440
Width = 735
End
Begin VB.TextBox txt_exp_a
BeginProperty Font
Name = "Times New Roman"
Size = 14.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00004080&
Height = 450
Left = 6720
TabIndex = 3
Text = "0"
ToolTipText = "Ingrese unicamente n鷐eros enteros"
Top = 4440
Width = 975
End
Begin VB.TextBox txt_coef_a
BeginProperty Font
Name = "Times New Roman"
Size = 14.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00004080&
Height = 450
Left = 240
TabIndex = 1
Top = 360
Width = 1575
End
Begin VB.Label Label3
BackColor = &H0080C0FF&
BackStyle = 0 'Transparent
Caption = "= 0"
BeginProperty Font
Name = "Verdana"
Size = 14.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFC0C0&
Height = 495
Left = 6720
TabIndex = 34
Top = 480
Width = 735
End
Begin VB.Label Label2
BackColor = &H0080C0FF&
BackStyle = 0 'Transparent
Caption = "X +"
BeginProperty Font
Name = "Verdana"
Size = 14.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFC0C0&
Height = 495
Left = 4320
TabIndex = 33
Top = 480
Width = 735
End
Begin VB.Label lbl_e
Caption = "E"
BeginProperty Font
Name = "Verdana"
Size = 11.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 2
Left = 5520
TabIndex = 32
Top = 6000
Width = 255
End
Begin VB.Label lbl_e
Caption = "E"
BeginProperty Font
Name = "Verdana"
Size = 11.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 1
Left = 5520
TabIndex = 31
Top = 5280
Width = 255
End
Begin VB.Label lbl_2
BackColor = &H00000000&
Caption = "2"
BeginProperty Font
Name = "Verdana"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFC0C0&
Height = 255
Left = 2160
TabIndex = 30
Top = 360
Width = 135
End
Begin VB.Label lbl_e
Caption = "E"
BeginProperty Font
Name = "Verdana"
Size = 11.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 0
Left = 5520
TabIndex = 28
Top = 4560
Width = 255
End
Begin VB.Label lbl_a
BackColor = &H0080C0FF&
BackStyle = 0 'Transparent
Caption = "X +"
BeginProperty Font
Name = "Verdana"
Size = 14.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFC0C0&
Height = 495
Left = 1920
TabIndex = 27
Top = 480
Width = 735
End
End
Begin VB.Image Image1
Height = 600
Left = 360
Picture = "ecuacion_2do_grado.frx":08CA
Top = 3960
Width = 600
End
Begin VB.Label lblymin
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "ymin"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C00000&
Height = 255
Left = 8040
TabIndex = 23
Top = 10560
Width = 2775
End
Begin VB.Label lblxmin
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "xmin"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C00000&
Height = 255
Left = 6000
TabIndex = 22
Top = 8760
Width = 615
End
Begin VB.Label lblxmax
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "xmax"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C00000&
Height = 255
Left = 11880
TabIndex = 21
Top = 8760
Width = 735
End
Begin VB.Label lblymax
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "ymax"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C00000&
Height = 255
Left = 8040
TabIndex = 20
Top = 7080
Width = 2775
End
Begin VB.Menu m_ayuda
Caption = "&Ayuda"
Begin VB.Menu sm_acercade
Caption = "A&cerca de..."
End
End
End
Attribute VB_Name = "form_principal"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public espacio As String
Public b As Integer
Option Explicit
Public Sub Form_Load()
inicializar
b = 1
espacio = ""
End Sub
Private Sub btn_nuevo_calculo_Click()
inicializar
End Sub
Private Sub btncalcular_Click()
Dim S As String
S = ""
If txt_coef_a.Text = "" Then
S = S & " a"
End If
If txt_coef_b.Text = "" Then
S = S & " b"
End If
If txt_coef_c.Text = "" Then
S = S & " c"
End If
If S <> "" Then
MsgBox "Ingrese un valor en los coeficientes:" & S
Exit Sub
End If
calcular
End Sub
Private Sub btn_salir_Click()
If MsgBox("Est
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -