Print Page | Close Window

to change label caption (runtime)

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=7753
Printed Date: 18 June 2025 at 9:35am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: to change label caption (runtime)
Posted By: simps
Subject: to change label caption (runtime)
Date 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...



Replies:
Posted By: Oleg
Date 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


Posted By: simps
Date Posted: 08 August 2007 at 9:10am
thank you so much



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net