Cannot Re Enable CommandBars within _Shutdown ... - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Cannot Re Enable CommandBars within _Shutdown ...

Last post 02-23-2005 09:04 AM by ScottAtRVC. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-21-2005 01:16 AM

    Cannot Re Enable CommandBars within _Shutdown ...

    Hi All,

    I am using the InfoPath OnLoad event for disabling certain menus.

    Ideally i would like to re enable these menus when the user closes the
    form. As there is no OnClose event i looked at the _Shutdown event.

    I would like to understand why the _Shutdown event cannot be used for
    such processing?

    many thanks
    Scott
  • 02-22-2005 02:53 PM In reply to

    Re: Cannot Re Enable CommandBars within _Shutdown ...

    I'm not sure that there is a good place for you to do this. As you state there is no OnClose, or OnExit or anything like it.

    ONE possibility is to have a close button on your form. And in the code for that button you perform your tasks. If you have a way to lock down the application from being shut down in any other way, then this would make sense. Otherwise, they can still bypass the button.

    Greg Collins [InfoPath MVP]
  • 02-23-2005 09:04 AM In reply to

    Re: Cannot Re Enable CommandBars within _Shutdown ...

    Thanks Greg.

    Unfortunatly i cannot place a close button on the form.

    For the time being the solution is going to be - using the OnLoad event, all menus will be enabled. Then appropriate menus will be disabled. I know this is not the nicest solution. but it will have to do for the this iteration.

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