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

MudiW's Avatar, Join Date: Nov 2009
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

Thanks
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Why do you think it would not be possible ?
0
dennyphilip's Avatar, Join Date: Oct 2009
Light Poster
yes it is possible ...
In which language do u want it to be done??
0
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
0
ManzZup's Avatar, Join Date: May 2009
Skilled contributor
not tat hard

dim lblNew as new label
lbl.text = "your text"
form7.controls.add(lbl)