Hide Toolbars - InfoPath Dev
in

InfoPath Dev

Hide Toolbars

Last post 02-28-2011 12:26 PM by Max M. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 10-07-2010 01:08 AM

    • Johan
    • Not Ranked
    • Joined on 01-24-2008
    • South Africa
    • Posts 17

    Hide Toolbars

    Hi There! I need to automatically hide all the toolbars (standard, formatting, table etc.) from all the users of my form. Can someone please assist me on how to do this? I have tried the Tools - Customize - Toolbars route but that only changes my view not my users' view of the form. Thank you in advance!
    Johan Bredell
  • 10-08-2010 09:27 AM In reply to

    Hi, you can disable it with some code.

     here some C# code to do it:

    CommandBars commandBars = (CommandBars)this.Application.ActiveWindow.CommandBars;  

                commandBars["Menu Bar"].Enabled = false;
                commandBars["Standard"].Enabled = false;
                commandBars["Formatting"].Enabled = false;

  • 10-11-2010 12:17 AM In reply to

    • Johan
    • Not Ranked
    • Joined on 01-24-2008
    • South Africa
    • Posts 17
    Thank you so much!
    Johan Bredell
  • 10-11-2010 08:03 AM In reply to

     You're welcome:)

  • 02-28-2011 12:26 PM In reply to

    • Max M
    • Not Ranked
    • Joined on 02-10-2011
    • Posts 9

    I haven't done any coding in infopath before. Where do I put these lines of code and how can I make them work??

Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.