Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Visual Basic ( VB ) (http://www.go4expert.com/forums/visual-basic/)
-   -   On button clicked create label in form7? It is possible in visual basic 6.0? (http://www.go4expert.com/forums/button-clicked-create-label-form7-t20051/)

MudiW 11Nov2009 01:55

On button clicked create label in form7? It is possible in visual basic 6.0?
 
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

shabbir 11Nov2009 09:44

Re: On button clicked create label in form7? It is possible in visual basic 6.0?
 
Why do you think it would not be possible ?

dennyphilip 11Nov2009 20:14

Re: On button clicked create label in form7? It is possible in visual basic 6.0?
 
yes it is possible ...
In which language do u want it to be done??

Cseek 13Dec2009 19:17

Re: On button clicked create label in form7? It is possible in visual basic 6.0?
 
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 24Jan2010 19:53

Re: On button clicked create label in form7? It is possible in visual basic 6.0?
 
not tat hard

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


All times are GMT +5.5. The time now is 13:57.