<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: [newbie] Infopath.Application object and .NET "process" class</title><link>https://www.infopathdev.com:443/forums/thread/20990.aspx</link><pubDate>Wed, 20 Jun 2007 13:50:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20990</guid><dc:creator>Francis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20990.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=20990</wfw:commentRss><description>Hi! Thanks for your reply!&lt;br /&gt;&lt;br /&gt;I want my VB.net application to control an instance of the InfoPath&amp;nbsp;(2003) application - but I need to know if the user has closed the InfoPath window. (I&amp;#39;m using the &amp;quot;application&amp;quot; and &amp;quot;xdocument&amp;quot; objects.) There is no &amp;quot;closing&amp;quot; event for the application object. . I have used &amp;quot;If Not IsNothing(CurrentDoc)&amp;quot; (refererring to the Xdocument) in parts of the code to at least&amp;nbsp;provide&amp;nbsp;some&amp;nbsp;insurance.&lt;br /&gt; &lt;br /&gt;In my application I set the document window title bar text, and so I tried using the .NET&amp;nbsp;methods&amp;nbsp;for&amp;nbsp;finding&amp;nbsp;the&amp;nbsp;process&amp;nbsp;of&amp;nbsp;the&amp;nbsp;document&amp;nbsp;window,&amp;nbsp;thinking&amp;nbsp;that&amp;nbsp;the&amp;nbsp;Process.Exit&amp;nbsp;event&amp;nbsp;would&amp;nbsp;let&amp;nbsp;notify&amp;nbsp;me&amp;nbsp;if&amp;nbsp;the&amp;nbsp;user&amp;nbsp;closed&amp;nbsp;the&amp;nbsp;window&amp;nbsp;-&amp;nbsp;but&amp;nbsp;for&amp;nbsp;reasons&amp;nbsp;I&amp;nbsp;don&amp;#39;t&amp;nbsp;understand,&amp;nbsp;this&amp;nbsp;doesn&amp;#39;t&amp;nbsp;occur&amp;nbsp;if&amp;nbsp;I&amp;nbsp;click the &amp;quot;X&amp;quot;&amp;nbsp;close&amp;nbsp;button,&amp;nbsp;but&amp;nbsp;does&amp;nbsp;occur&amp;nbsp;if&amp;nbsp;I&amp;nbsp;use&amp;nbsp;&amp;quot;File&amp;nbsp;&amp;gt;&amp;nbsp;Exit&amp;quot;.&lt;br /&gt; &lt;br /&gt;Right now I   am using the Win32 API to disable the close button and &amp;quot;close&amp;quot; window menu item so the user can&amp;#39;t do this, and only allow the application to close the Window. &amp;nbsp;However, if the application crashes, you need to use Task Manager to close the document window. Unless&amp;nbsp;I&amp;nbsp;could&amp;nbsp;&amp;quot;cancel&amp;quot;&amp;nbsp;the&amp;nbsp;user&amp;nbsp;closing&amp;nbsp;the&amp;nbsp;document window,&amp;nbsp;I&amp;nbsp;guess&amp;nbsp;I&amp;#39;d&amp;nbsp;have&amp;nbsp;to&amp;nbsp;do&amp;nbsp;this&amp;nbsp;anyway...but&amp;nbsp;I&amp;nbsp;still&amp;nbsp;wouldn&amp;#39;t&amp;nbsp;mind&amp;nbsp;knowing&amp;nbsp;if&amp;nbsp;this&amp;nbsp;is&amp;nbsp;possible.&lt;br /&gt; &lt;br /&gt;I&amp;#39;d appreciate any input on this. Thanks! --- Francis&lt;br /&gt;</description></item><item><title>Re: [newbie] Infopath.Application object and .NET "process" class</title><link>https://www.infopathdev.com:443/forums/thread/20344.aspx</link><pubDate>Mon, 04 Jun 2007 09:15:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20344</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20344.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=20344</wfw:commentRss><description>&lt;p&gt;Hi Francis and welcome to the forums!&lt;/p&gt;&lt;p&gt;I&amp;#39;m not sure I understand what you&amp;#39;re trying to do.&amp;nbsp; I know I can attach the debugger to the&amp;nbsp;INFOPATH.exe process to catch debugging symbols, but I have never tried to do what you are doing.&lt;/p&gt;&lt;p&gt;Why exactly are you trying to do this?&lt;/p&gt;</description></item><item><title>[newbie] Infopath.Application object and .NET "process" class</title><link>https://www.infopathdev.com:443/forums/thread/20100.aspx</link><pubDate>Tue, 22 May 2007 13:59:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20100</guid><dc:creator>Francis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20100.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=20100</wfw:commentRss><description>Hi! I&amp;#39;m using VB8(.net) with InfoPath 2003. In .NET, there is the&amp;nbsp;&amp;quot;process&amp;quot; class which allows you to monitor when a process created&amp;nbsp;with this class has been exited - I&amp;#39;d like to be able to monitor a&amp;nbsp;process&amp;nbsp;created using the &amp;quot;InfoPath.Application&amp;quot; and know if it&amp;#39;s been&amp;nbsp;exited. Is there a way to &amp;quot;link&amp;quot; a windows process with an Infopath.Application object? Is there a way to get the process ID of an application object you created, or is it possible for a process created with the .NET &amp;quot;process&amp;quot; class to be &amp;quot;equated&amp;quot; with an Infopath.application object?&amp;nbsp;Thanks&amp;nbsp;for&amp;nbsp;any&amp;nbsp;help&amp;nbsp;with&amp;nbsp;this! &lt;br /&gt;&lt;br /&gt;--- Francis&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>