CAPTION PROPERTY DEFAULT IN OCX
- IN AN ACTIVE CONTROL HOW DO WHAT IS A PROPERTY CAPTION DEFAULT IN MY USERCONTROL EX:
IN FORM PUT ON MY USERCONTROL CAN CHANGE WITHOUT USING .CAPTION ONLY NAME COMPONENT.
MYCOMP = "TEXT"
OR
MYCOMP.CAPTION ="TEXT"
All Replies
- HI TO ALL
IN AN ACTIVE CONTROL HOW DO WHAT IS A PROPERTY CAPTION DEFAULT IN MY USERCONTROL EX:
IN FORM PUT ON MY USERCONTROL CAN CHANGE WITHOUT USING .CAPTION ONLY NAME COMPONENT.
MYCOMP = "TEXT"
OR
MYCOMP.CAPTION ="TEXT"
PLEASE HELP ME. - I think Capption is no longer in use, so you havwe to use Text.
MYCOMP.TEXT ="TEXT"
Don't judge me, just Upgrade me. Thanks! - His property is captiom same.
My problem is passing the information without using the term. Caption
If you use a Label native VB you can change your caption at run-time mode as follows:
label1 = "my caption"
or
label1.caption = "my caption" His property is captiom same.
My problem is passing the information without using the term. Caption
If you use a Label native VB you can change your caption at run-time mode as follows:
label1 = "my caption"
or
label1.caption = "my caption"
I dont know what are you trying to achiev...or Do...sorry
where do you want to pass this information? to what?
like what?
Don't judge me, just Upgrade me. Thanks!- What I do is an OCX component that I can change the text of the caption property at run time using the component name like Label native VB.Anyway, I create the OCX, to work you need the code of the program put namecomponente.caption = "????" and not simply NameComponent = "??????" because of this errordo a simple thing to open a form put a label1.
put this code:Private Sub Form_Load()
Label1 = "verify"Label1.Caption = "verify"
End Sub
see that it's not wrong!
now try to create an OCX even though it only has a caption property and see that it will give error if delete .caption
Malange,I appreciate your attention!
if I send an email, I attach the project and see where is the problem (raul@waytek.com.br) - hello, have a look here, Please:
http://social.msdn.microsoft.com/Forums/en-US/vbinterop/thread/f6d93cef-3c32-47ba-a24f-2b9fdfd32ae7
http://social.msdn.microsoft.com/Search/en-US?query=OCX&ac=8
Don't judge me, just Upgrade me. Thanks!


