Close the Form

C

christophe

hi everybody.

I have read all post about closing an infopath form but it doesn't work :-(

i have tried :
- thisApplication.ActiveWindow.Close(true);
- thisApplication.Quit(true);
- thisXDocument.View.Window.Close(true);

in fact, i have a form and when the user write something in a field, I have
a code behind in c#.

It's ok. when i debugg the form, with visual Studio, my pointbreak are good
but the form is already open.

Please, can u tell me more about it ?

thanks a lot.
chris.
 
C

christophe

well,

the code to close the form with after a click on a button is
"thisApplication.ActiveWindow.Close(false);"

but, i want to close my form when a user write something in a ink controle.

when a user write something in this controle, I modify a hidden field.

After this changed, a code is running to modify in my database.

But how can i do to close my form after that ? Can I "submit" automaticaly ?

thanks for your reply.
 

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