On button clicked create label in form7? It is possible in visual basic 6.0?

MudiW's Avatar
Newbie Member
Hello, I want to create a command that when the button is clicked creates a lable down the last label in form7. It's possible? If yes, how

shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Why do you think it would not be possible ?
dennyphilip's Avatar, Join Date: Oct 2009
Light Poster
yes it is possible ...
In which language do u want it to be done??
Cseek's Avatar, Join Date: Dec 2009
Go4Expert Member
with vb6
use object.control.add method

dim lbl_x as control
set lbl_x = frm_x.controls.add("vb.label","lbl_10")

try something like this
ManzZup's Avatar, Join Date: May 2009
Skilled contributor
not tat hard

dim lblNew as new label
lbl.text = "your text"