Private Declare Function SetWindowRgn Lib "user32" (ByVal hWnd As Long, ByVal hRgn As Long, ByVal bRedraw As Boolean) As Long Private Declare Function CreateRoundRectRgn Lib "gdi32" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long, ByVal X3 As Long, ByVal Y3 As Long) As Long SetWindowRgn Button.hWnd, CreateRoundRectRgn(0, 0, BUTTON.WIDTH.IN.PIXELS, BUTTON.HEIGHT.IN.PIXELS, 2, 2), True