VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



You may create controls in run time using this short code

by breax (1 Submission)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sun 20th May 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

You may create controls in run time using this short code

Rate You may create controls in run time using this short code




Private Sub cmdCreate_Click()
    'create the object command button
    Set NewObject = Controls.Add("VB.CommandButton", "MyControls")

    'set properties of the new added control
    NewObject.Visible = True
    NewObject.Caption = "here"
    NewObject.Left = 500
    NewObject.Top = 1000
    NewObject.Height = 1000
End Sub


Download this snippet    Add to My Saved Code

You may create controls in run time using this short code Comments

No comments have been posted about You may create controls in run time using this short code. Why not be the first to post a comment about You may create controls in run time using this short code.

Post your comment

Subject:
Message:
0/1000 characters