Accessing a button control programmatically in InfoPath Form?

B

BlueDolphin

Hello there,
I've got a question on InfoPath which I wonder if anyone got any idea.
The question is this:
I’ve drag a button control onto the InfoPath form. This InfoPath was created
as a VS.NET InfoPath Project using the InfoPath VS.Net Toolkit.

I need to write managed code for the OnLoad event for the InfoPath form to
show/hide the button and change the button label text depending on some
conditions when the form is loaded.

But I do not know how to get a reference to the button programmatically to
hide/show it.

Do you have any idea how to get a reference to the button using its id in
managed code?

Appreciate for any advise.

Much thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top