Close the form on the onload event - InfoPath Dev
in

InfoPath Dev

Close the form on the onload event

Last post 02-02-2006 06:01 AM by Coita Thierry. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 01-31-2006 12:37 AM

    Close the form on the onload event

    Hi,

    I want to make some test before open my form if the test is not good I want to close the form! But the problem is if I try to make:

    thisApplication.XDocuments.Close(0);


    An error is send: the index is out of bound!

    Is it possible to close my form on the onload event?

    Thanks

    Thierry
    Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
    merci de lire ceci
  • 01-31-2006 02:28 AM In reply to

    • sandeep
    • Not Ranked
    • Joined on 11-16-2005
    • India
    • Posts 7

    Re: Close the form on the onload event


    Hi Virgul,

    I think it is not possible to close the form in onload event.
    But it is possible through taskpane.


    Sandeep
    InfoPath Dev India
  • 01-31-2006 09:29 AM In reply to

    • dhtroy
    • Not Ranked
    • Joined on 01-30-2006
    • USA
    • Posts 8

    Re: Close the form on the onload event

    Well, this will "close" the InfoPath form, however, it will leave the IDE open ...

    in the load event, just set the return status to 'false'

    e.ReturnStatus = false

    This will cause the load event to fail, and your form will cease to open.





    D.
  • 02-02-2006 06:01 AM In reply to

    Re: Close the form on the onload event

    Hi,

    It's what I need thanks for this tricks

    Thierry
    Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
    merci de lire ceci
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.