VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



creating a commandbutton and textbox with the help of coding

by deepti (2 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 17th September 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)

creating a commandbutton and textbox with the help of coding

API Declarations


Private WithEvents command As CommandButton


Rate creating a commandbutton and textbox with the help of coding



Private Sub Form_Load()
Set text1 = Form1.Controls.Add("vb.textbox", "command1")

Set command = Form1.Controls.Add("vb.commandbutton", "text")
text1.Visible = True
text1.Top = 1000
text1.Width = 500
command.Visible = True
command.Caption = "ok"
End Sub


Download this snippet    Add to My Saved Code

creating a commandbutton and textbox with the help of coding Comments

No comments have been posted about creating a commandbutton and textbox with the help of coding. Why not be the first to post a comment about creating a commandbutton and textbox with the help of coding.

Post your comment

Subject:
Message:
0/1000 characters