Visual Basic > Visual Basic Forums > Visual Basic Language > CAPTION PROPERTY DEFAULT IN OCX
Ask a questionAsk a question
 

QuestionCAPTION PROPERTY DEFAULT IN OCX

  • Thursday, October 29, 2009 3:31 PMRAULAM Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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

  • Thursday, October 29, 2009 5:50 PMRAULAM Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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.

  • Friday, October 30, 2009 3:41 PMMalange Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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!
  • Tuesday, November 03, 2009 3:30 PMRAULAM Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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"
  • Tuesday, November 03, 2009 10:36 PMMalange Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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!
  • Wednesday, November 04, 2009 5:27 PMRAULAM Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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 error

    do 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)


  • Wednesday, November 04, 2009 7:41 PMMalange Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals