Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - to change label caption (runtime)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

to change label caption (runtime)

 Post Reply Post Reply
Author
Message
simps View Drop Down
Groupie
Groupie


Joined: 08 August 2007
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote simps Quote  Post ReplyReply Direct Link To This Post Topic: to change label caption (runtime)
    Posted: 08 August 2007 at 5:44am

it must be simple,but i couldn't find :(

i've a commandbars object on my form.
i'm using
.LoadDesignerBars
event under form_load and it's done...
but i've a label typed control on my toolbar.
i want to change caption of this label by code
how can i do it?
 
i know the id of that label control.
but i need the codeline to change caption (1050)
it must be stg like
 
commandbars1.item(1050).caption="bla bla bla"
or...?
 
Thank you...
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 08 August 2007 at 9:05am
Hello,
See FindControl method.
 
But I recomment you enable Actions and Set Caption of Action.
See Actions sample.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
simps View Drop Down
Groupie
Groupie


Joined: 08 August 2007
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote simps Quote  Post ReplyReply Direct Link To This Post Posted: 08 August 2007 at 9:10am
thank you so much
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.