Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / March 2005

Tip: Looking for answers? Try searching our database.

Changing the text / caption of a button once you click it (programmatically)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MatsonPP - 30 Mar 2005 21:18 GMT
Hello,

When I click a button which i have called "Advanced >>>", I want it to
open something and then change the caption to "Advanced <<<" as I have
seen in some places. Does anyone know how to change the text (caption)
of a button.

(Maybe something like eventObj.Source.caption = "Advanced <<<" which
doesn't work)

Thanks!!
Matt
MatsonPP - 31 Mar 2005 15:47 GMT
Basically there is no way to do this. What i had to do was create two
buttons beside each other and then go into the conditional formatting
properties of each button. I "selected field or group" and chose my
"optional group" and said if "is present" then show the "Advanced <<<"
for the Advanced <<< button's properties, then I did the same the for
the advanced >>> button's properties except putting "if is not
present".

Works like a charm :)

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.