VERSION 5.00 Begin VB.Form Form1 Caption = "Equazione primo grado" ClientHeight = 3090 ClientLeft = 60 ClientTop = 450 ClientWidth = 4680 LinkTopic = "Form1" ScaleHeight = 3090 ScaleWidth = 4680 StartUpPosition = 3 'Windows Default Begin VB.CommandButton Command3 Caption = "Esci" Height = 615 Left = 2760 TabIndex = 5 Top = 2400 Width = 1455 End Begin VB.CommandButton Command2 Caption = "Cancella" Height = 735 Left = 2760 TabIndex = 4 Top = 1320 Width = 1575 End Begin VB.CommandButton Command1 Caption = "Calcola x" Height = 735 Left = 2640 TabIndex = 3 Top = 240 Width = 1815 End Begin VB.TextBox Text3 Height = 495 Left = 360 TabIndex = 2 Top = 1680 Width = 1935 End Begin VB.TextBox Text2 Height = 495 Left = 480 TabIndex = 1 Top = 840 Width = 1575 End Begin VB.TextBox Text1 Height = 495 Left = 480 TabIndex = 0 Top = 120 Width = 1575 End Begin VB.Label Label4 Caption = "x" Height = 375 Left = 240 TabIndex = 9 Top = 1800 Width = 135 End Begin VB.Label Label3 Caption = "x" Height = 375 Left = 360 TabIndex = 8 Top = 1920 Width = 135 End Begin VB.Label Label2 Caption = "b" Height = 615 Left = 240 TabIndex = 7 Top = 960 Width = 255 End Begin VB.Label Label1 Caption = "a" Height = 375 Left = 240 TabIndex = 6 Top = 480 Width = 135 End End Attribute VB_Name = "Form1" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub Command1_Click() a = Val(Text1.Text) b = Val(Text2.Text) If a = 0 And b = 0 Then Text3.Text = "equazione indeterminata" End If If a = 0 And b <> 0 Then Text3.Text = "equazione impossibile" End If If a <> 0 And b <> 0 Then x = b / a Text3.Text = x End If End Sub Private Sub Command2_Click() Text1.Text = " " Text2.Text = " " Text3.Text = " " End Sub Private Sub Command3_Click() End End Sub