VERSION 5.00 Begin VB.Form Form1 BackColor = &H00FF8080& Caption = "Rasstoyanie" ClientHeight = 2655 ClientLeft = 4275 ClientTop = 3015 ClientWidth = 3630 Icon = "Rass.frx":0000 LinkTopic = "Form1" ScaleHeight = 2655 ScaleWidth = 3630 Begin VB.CommandButton Command2 BackColor = &H0080FF80& Cancel = -1 'True Caption = "В&ыход" Height = 495 Left = 2640 Style = 1 'Graphical TabIndex = 14 ToolTipText = "Для завершения работы программы нажмите кнопку ""Выход""" Top = 2160 Width = 975 End Begin VB.TextBox Text4 BackColor = &H00FFFFC0& Height = 285 Left = 2280 TabIndex = 9 ToolTipText = "Координата y второй точки" Top = 840 Width = 1215 End Begin VB.TextBox Text3 BackColor = &H00FFFFC0& Height = 285 Left = 2280 TabIndex = 8 ToolTipText = "Координата y первой точки" Top = 480 Width = 1215 End Begin VB.TextBox Text2 BackColor = &H00FFFFC0& Height = 285 Left = 480 TabIndex = 7 ToolTipText = "Координата x второй точки" Top = 840 Width = 1215 End Begin VB.CommandButton Command1 BackColor = &H000000FF& Caption = "&OK" Default = -1 'True Height = 495 Left = 2880 Style = 1 'Graphical TabIndex = 1 ToolTipText = "Для нахождения расстояния между двумя точками нажмите кнопку ""OK""" Top = 1200 Width = 735 End Begin VB.TextBox Text1 BackColor = &H00FFFFC0& Height = 285 Left = 480 TabIndex = 0 ToolTipText = "Координата x первой точки" Top = 480 Width = 1215 End Begin VB.Label Label9 BackColor = &H00C00000& Caption = "Для завершения работы програм- мы нажмите кнопку ""В&ыход""." ForeColor = &H000000FF& Height = 495 Left = 0 TabIndex = 13 ToolTipText = "Условие" Top = 2160 Width = 2655 End Begin VB.Label Label8 BackColor = &H0000C000& Caption = "Для нахождения расстояния между двумя точками нажмите кнопку ""&OK""." Height = 495 Left = 0 TabIndex = 12 ToolTipText = "Условие" Top = 1200 Width = 2895 End Begin VB.Label Label7 BackColor = &H0080C0FF& BorderStyle = 1 'Fixed Single BeginProperty Font Name = "MS Sans Serif" Size = 9.75 Charset = 204 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty ForeColor = &H00C00000& Height = 495 Left = 1920 TabIndex = 11 ToolTipText = "Ответ" Top = 1680 Width = 1695 End Begin VB.Label Label6 BackColor = &H0000FFFF& Caption = "Растояние между двумя точками равно:" Height = 495 Left = 0 TabIndex = 10 Top = 1680 Width = 1935 End Begin VB.Label Label5 BackColor = &H80000001& Caption = "y2" Height = 255 Left = 1920 TabIndex = 6 ToolTipText = "Координата y второй точки" Top = 840 Width = 255 End Begin VB.Label Label4 BackColor = &H80000001& Caption = "y1" Height = 255 Left = 1920 TabIndex = 5 ToolTipText = "Координата y первой точки" Top = 480 Width = 255 End Begin VB.Label Label3 BackColor = &H80000001& Caption = "x2" Height = 255 Left = 120 TabIndex = 4 ToolTipText = "Координата x второй точки" Top = 840 Width = 255 End Begin VB.Label Label2 BackColor = &H80000001& Caption = "x1" Height = 255 Left = 120 TabIndex = 3 ToolTipText = "Координата x первой точки" Top = 480 Width = 255 End Begin VB.Label Label1 BackColor = &H000080FF& Caption = "Введите координаты точек, расстояние между которыми необходимо вычислить:" Height = 495 Left = 0 TabIndex = 2 ToolTipText = "Условие" Top = 0 Width = 3615 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() Label7.Caption = "" X1 = Val(Text1) X2 = Val(Text2) Yl = Val(Text3) Y2 = Val(Text4) s = Sqr((X2 - X1) ^ 2 + (Y2 - Y1) ^ 2) Label7.Caption = s End Sub Private Sub Command2_Click() End End Sub