How to Disable the "Fill out a form" Button? - InfoPath Dev
in

InfoPath Dev

How to Disable the "Fill out a form" Button?

Last post 03-22-2007 09:48 AM by Matt Faus. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 03-21-2007 12:04 AM

    • vijesh
    • Not Ranked
    • Joined on 01-05-2007
    • India
    • Posts 16

    How to Disable the "Fill out a form" Button?

    We are facing some issues when a user clicks on “Fill out a form” on the top left of any infopath form.
    We dicided to disable this button, as such there is no significance of this button as the desired form to fill out is already open.
    For doing this please advise / provide a solution to disable this control in all infopath forms in oor Project.

  • 03-21-2007 09:52 AM In reply to

    Re: How to Disable the "Fill out a form" Button?

    I don't know personally how to do this, but it is my understanding that if you are going to attempt it you will need a full-trust managed code form template. Managed code will allow you into the application to make adjustments like that, but doing so requires full-trust.
  • 03-22-2007 03:02 AM In reply to

    • vijesh
    • Not Ranked
    • Joined on 01-05-2007
    • India
    • Posts 16

    Re: How to Disable the "Fill out a form" Button?

    Hi,

    Yes,We can do this programmatically. In code behind, we need to get reference of that button and then disable that button. Every UI control has defined #. You have to use that number to get handle for that control and then call disable on that. I am sending you list # for each toolbar button and menu item.

    http://msdn2.microsoft.com/en-us/library/aa192513(office.11).aspx

    Currently I am aware of only this method. If I get simpler method I will let you know. if u get pls let me know.

    Viju
  • 03-22-2007 09:48 AM In reply to

    Re: How to Disable the "Fill out a form" Button?

    Hi Viju,

    Yes, this is what I would have said to accomplish this. There is no simpler way. Those APIs are pretty cool, and even allow you to add your own custom menu options.
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.