VERSION 5.00
Begin VB.UserControl BorderBut 
   ClientHeight    =   1815
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   2730
   ScaleHeight     =   1815
   ScaleWidth      =   2730
   Begin VB.CommandButton cmdButton 
      Caption         =   "Command1"
      Height          =   615
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   1455
   End
   Begin VB.Shape BlueBorder 
      BorderColor     =   &H80000002&
      FillColor       =   &H80000002&
      FillStyle       =   0  'Solid
      Height          =   615
      Left            =   0
      Top             =   0
      Width           =   1455
   End
End
Attribute VB_Name = "BorderBut"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
Option Explicit

Private Sub cmdButton_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    cmdButton.Top = 50
    cmdButton.Left = 50
    cmdButton.Height = Height - 100
    cmdButton.Width = Width - 100
End Sub

Private Sub cmdButton_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
    cmdButton.Top = 0
    cmdButton.Left = 0
    cmdButton.Height = Height
    cmdButton.Width = Width
End Sub

Private Sub UserControl_Resize()
    cmdButton.Height = Height
    cmdButton.Width = Width
    '
    BlueBorder.Height = Height
    BlueBorder.Width = Width
End Sub

