VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   5190
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   8145
   LinkTopic       =   "Form1"
   ScaleHeight     =   5190
   ScaleWidth      =   8145
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton Com2 
      Caption         =   "clear"
      Height          =   495
      Left            =   5400
      TabIndex        =   1
      Top             =   4440
      Width           =   1095
   End
   Begin VB.CommandButton Com1 
      Caption         =   "рисовать"
      Height          =   495
      Left            =   6720
      TabIndex        =   0
      Top             =   4440
      Width           =   1215
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim x1 As Single, x2 As Single, y1 As Single, y2 As Single

Private Sub Picture1_Click()

End Sub

Private Sub Com1_Click()
On Error GoTo mmm
Form1.Cls
x1 = InputBox("x1")
x2 = InputBox("x2")
y1 = InputBox("y1")
y2 = InputBox("y2")

Call Дом(x1, x2, y1, y2)
mmm:
End Sub

Private Sub Com2_Click()
Form1.Cls
End Sub

Private Sub Form_Load()
Form1.Scale (0, 0)-(200, 200)
End Sub

Private Sub Дом(x1, x2, y1, y2 As Single)
Form1.Line (x1, y1)-(x2, y2), 255, B
'Form1.Line ((x1) / 2, y1)-(x2, y1), 255

Form1.Line (x1, y1)-((x1 + x2) / 2, y1 / 2), 255
Form1.Line ((x1 + x2) / 2, y1 / 2)-(x2, y1), 255

End Sub
