Get current form using C# - InfoPath Dev
in

InfoPath Dev

Get current form using C#

Last post 09-26-2013 03:28 AM by andy123. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 04-19-2007 10:43 AM

    Get current form using C#

    Hello,

    I am trying to get the current form in order to print it, also the print function is controled by a button on the form.

    There could be as many as 8 forms open at once for the user, so I need to find the correct one in order to print it.

    I know that I can get the first form opened by this code:  XmlForm aForm = this.Application.XmlForms[0].

    Therefore I know that I could itterate through the forms this way, the only problem is that I don't know what to compare in order to get the correct form.

    Could someone give me any ideas?

  • 04-23-2007 11:31 AM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: Get current form using C#

    Hi MarcCarter,

    Check the below link how to focus the active window using in VB,

    http://www.vbforums.com/showthread.php?t=460143

     

  • 09-26-2013 03:28 AM In reply to

    Re: Get current form using C#

    i would like to appreciate you for sharing such a great info with us
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.