VERSION 5.00 Begin VB.Form Form1 BackColor = &H00FFC0C0& BorderStyle = 1 'Fixed Single Caption = "Kub" ClientHeight = 2100 ClientLeft = 3930 ClientTop = 3990 ClientWidth = 4470 Icon = "KUB.frx":0000 LinkTopic = "Form1" MaxButton = 0 'False MinButton = 0 'False ScaleHeight = 2100 ScaleWidth = 4470 Begin VB.PictureBox Picture3 BackColor = &H00C00000& ForeColor = &H0000FF00& Height = 375 Left = 120 ScaleHeight = 315 ScaleWidth = 3195 TabIndex = 7 ToolTipText = "Значение объёма куба" Top = 1680 Width = 3255 End Begin VB.PictureBox Picture2 BackColor = &H00C00000& ForeColor = &H0000FFFF& Height = 375 Left = 120 ScaleHeight = 315 ScaleWidth = 3195 TabIndex = 6 ToolTipText = "Значение площади всей поверхности куба" Top = 1320 Width = 3255 End Begin VB.PictureBox Picture1 BackColor = &H00C00000& ForeColor = &H000000FF& Height = 375 Left = 120 ScaleHeight = 315 ScaleWidth = 3195 TabIndex = 5 ToolTipText = "Значение площади одной грани куба" Top = 960 Width = 3255 End Begin VB.CommandButton Command2 BackColor = &H00FF8080& Caption = "Исп&ользованные формулы" BeginProperty Font Name = "Tahoma" Size = 8.25 Charset = 204 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 255 Left = 2160 Style = 1 'Graphical TabIndex = 4 ToolTipText = "Показать использованные формулы" Top = 600 Visible = 0 'False Width = 2175 End Begin VB.CommandButton Command3 BackColor = &H00FF8080& Cancel = -1 'True Caption = "В&ыход" Height = 255 Left = 3480 Style = 1 'Graphical TabIndex = 3 ToolTipText = "Для завершения работы программы нажмите кнопку ""Выход""" Top = 1800 Width = 855 End Begin VB.CommandButton Command1 BackColor = &H00FF8080& Caption = "Выч&ислить" Default = -1 'True BeginProperty Font Name = "Tahoma" Size = 8.25 Charset = 204 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 255 Left = 1080 Style = 1 'Graphical TabIndex = 2 ToolTipText = "Для нахождения данных нажмите кнопку ""Вычислить""." Top = 600 Width = 975 End Begin VB.TextBox Text1 BeginProperty Font Name = "MS Sans Serif" Size = 8.25 Charset = 204 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty ForeColor = &H00FF0000& Height = 270 Left = 120 TabIndex = 0 Text = "5" ToolTipText = "Значение длинны ребра куба" Top = 600 Width = 855 End Begin VB.Line Line12 X1 = 3720 X2 = 3720 Y1 = 1440 Y2 = 960 End Begin VB.Line Line11 X1 = 3720 X2 = 4320 Y1 = 1440 Y2 = 1440 End Begin VB.Line Line10 X1 = 3480 X2 = 3720 Y1 = 1680 Y2 = 1440 End Begin VB.Line Line9 X1 = 4320 X2 = 4320 Y1 = 960 Y2 = 1440 End Begin VB.Line Line8 X1 = 4080 X2 = 4320 Y1 = 1680 Y2 = 1440 End Begin VB.Line Line7 X1 = 3720 X2 = 4320 Y1 = 960 Y2 = 960 End Begin VB.Line Line6 X1 = 4080 X2 = 4320 Y1 = 1200 Y2 = 960 End Begin VB.Line Line5 X1 = 3480 X2 = 3720 Y1 = 1200 Y2 = 960 End Begin VB.Line Line4 X1 = 4080 X2 = 4080 Y1 = 1200 Y2 = 1680 End Begin VB.Line Line3 X1 = 3480 X2 = 4080 Y1 = 1680 Y2 = 1680 End Begin VB.Line Line2 X1 = 3480 X2 = 3480 Y1 = 1200 Y2 = 1680 End Begin VB.Line Line1 X1 = 3480 X2 = 4080 Y1 = 1200 Y2 = 1200 End Begin VB.Label Label1 BackColor = &H00FFC0C0& Caption = $"KUB.frx":5C12 Height = 615 Left = 120 TabIndex = 1 ToolTipText = "Условие" Top = 0 Width = 4215 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() Picture1.Cls Picture2.Cls Picture3.Cls sk = Text1.Text ^ 2 * 6 v = Text1.Text ^ 3 sl = Text1.Text ^ 2 Picture1.Print "Площадь одной грани куба равна " & sl Picture2.Print "Площадь поверхности куба равна " & sk Picture3.Print "Объём куба равен " & v Command2.Visible = True End Sub Private Sub Command2_Click() MsgBox "Sкуба=6*a*a; Sграни=a*a; Vкуба=a*a*a", vbOKOnly & vbInformation, "Использоавннае формулы" End Sub Private Sub Command3_Click() End End Sub Private Sub Text1_Click() Text1 = "" End Sub