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 / December 2004

Tip: Looking for answers? Try searching our database.

Reach the button from C# code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Guer - 08 Dec 2004 16:33 GMT
Hello,

I have two questions:

1. How can I change the label for a button (located in a repeating table)
from code? Is there any chance to reach the UI-objects?

2. I want a picture (icon) instead of a button that response on click-event
in a repeating table. How do I do?

Thanks in advance!

Regards Gunilla
Andrew Watt [MVP - InfoPath] - 08 Dec 2004 16:47 GMT
>2. I want a picture (icon) instead of a button that response on click-event
>in a repeating table. How do I do?

The OnClick event is specific to the button form control.

Andrew Watt
MVP - InfoPath
Greg Collins [InfoPath MVP] - 09 Dec 2004 00:12 GMT
You can have a dynamic label on a button ONLY if it is in a preserve code block. For ideas of how this might work, check out the InfoPath Dev Example titled, "Rudimentary Animation". It's not about the button specifically, but the button label will use the same technique.

As for a picture button, you can do this, again with some manual work, by using a background-image on the button and then removing either the background-color or border. Do a search in Google Groups for this topic. It's been discussed. The big issue is that the image (being a background image) will not "click" with the button.

Signature

Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com

Hello,

I have two questions:

1. How can I change the label for a button (located in a repeating table)
from code? Is there any chance to reach the UI-objects?

2. I want a picture (icon) instead of a button that response on click-event
in a repeating table. How do I do?

Thanks in advance!

Regards Gunilla
 
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.