Buttons on Form need to be disabled

T

tfischer

I have a formed using managed C# that creates a text message to send to
BizTalk Server and saves the form to file. The user clicks on it and
everything works... However, I need to disable the buttons on the .xml
form in the file so they do not inadvertantly resend the same message
again when they open the saved form.

Can anyone tell me how to get to the button to set the visible to false
or remove it from ther saved form altogether.

Thanks.
 
J

JR

Hi,

I ran into a similar situation which we resolved by using conditional formatting.

We created an additional field in our form's data source, but did not create a control for it on the form - preventing the user from filling it in manually. On the click event of the button, we set this field's value (in this case, the current date and time) through code (a rule would also work). We then set up conditional formatting on the button so that if this field contained a value, to disable the button.
 

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