Closing Browser-Enabled Forms with Managed Code

D

Deniz Yalman

Hi,

Application.Quit() method is not usable in browser-enabled forms. What can
we do? Is there an alternative way or a trick for closing browser-enabled
forms.
 
D

Don Reamey \(MSFT\)

Do you want the browser window to close or the form to submit and close?

You can add a button and place a close form rule on the button.
 
D

Deniz Yalman

I need to close from in form loading event. Because of this, i have to use
managed code.

Thanks anyway.
 
D

Deniz Yalman

Hello again,

As you pointed out, i want to close form in loading event according as
conditions coming from user.

But i learned that Application.Quit() method doesnt exist in browser-enabled
infopath dll. Unfortunately there is only one way to close the browser
programmatically which is embedding form in a custom asp.net page and trigger
javascript from form events. But its not suitable solution for my situation.

It seems that instead of closing browser, i should terminate process and
switch the form view on form loading event.

Thank you.
 

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