VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Design a Circular form an API call

by liaqat fayyaz (10 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Fri 8th June 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Design a Circular form an API call

API Declarations


Private Declare Function SetWindowRgn Lib "user32" (ByVal hWnd As Long, ByVal hRgn As Long, ByVal bRedraw As Long) As Long

Rate Design a Circular form an API call



End
End Sub

Private Sub Form_Load()
    Dim lngRegion As Long
    Dim lngReturn As Long
    Dim lngFormWidth As Long
    Dim lngFormHeight As Long
    Form1.Caption = "                        Circular Form"
    Command1.Caption = "Designed by"
    Command2.Caption = "   Liaqat  "
        
    lngFormWidth = Me.Width / Screen.TwipsPerPixelX
    lngFormHeight = Me.Height / Screen.TwipsPerPixelY
    lngRegion = CreateEllipticRgn(0, 0, lngFormWidth, lngFormHeight)
    lngReturn = SetWindowRgn(Me.hWnd, lngRegion, True)
           
End Sub


Download this snippet    Add to My Saved Code

Design a Circular form an API call Comments

No comments have been posted about Design a Circular form an API call. Why not be the first to post a comment about Design a Circular form an API call.

Post your comment

Subject:
Message:
0/1000 characters