Wrox Programmer Forums
|
BOOK: Professional InfoPath 2003
This is the forum to discuss the Wrox book Professional InfoPath 2003 by Ian Williams, Pierre Greborio; ISBN: 9780764557132
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional InfoPath 2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 18th, 2005, 08:56 AM
Registered User
 
Join Date: Aug 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default closing infopath forms using c#

I have a couple of questions regarding infopath in conjunction with c# code.

1. How do u close an infopath form using c# code behind (service pack).

I tried the following methods that didn't work (mostly security exception or com exceptions:


using WIN = System.Windows.Forms;

WIN.Application.Exit();
WIN.Application.ExitThread();
thisApplication.ActiveWindow.Close(true);
thisApplication.ActiveWindow.Close(false);
thisApplication.Windows[0].Close(true);
thisApplication.Windows[0].Close(false);
thisApplication.Windows[1].Close(true);
thisApplication.Windows[1].Close(false);
thisApplication.Quit(true);
thisApplication.Quit(false);

2. How do u disable submit on a form (not just by disabling a button)

An answer to these questions would be wonderful (especially the first question).
Thanks in advance.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Infopath email forms tapas2525 Infopath 0 October 5th, 2007 06:04 AM
E-mailing InfoPath Forms & Recreating XML Data... bburnsid Infopath 0 January 22nd, 2007 05:13 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.