Visual Basic.net - InfoPath Dev
in

InfoPath Dev

Visual Basic.net

Last post 11-01-2005 02:11 PM by nkelkar. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 10-31-2005 07:47 AM

    Visual Basic.net


    Trying to code a simple exit application thru a command button using visual basic.net. Can't find the proper code to execute properly. Any help would be much appreciated, relatively new to VB.net & infoapth. Have a VB6 background. Need a good code resource for using vb.net with infopath, any suggestions? Thanks, Kip.
    Here's my Command button:


    ' The following function handler is created by Microsoft Office InfoPath. Do not
    ' modify the type or number of arguments.
    <InfoPathEventHandler(MatchPath:="CTRL122_7", EventType:=InfoPathEventType.OnClick)> _
    Public Sub CTRL122_7_OnClick(ByVal e As DocActionEvent)


    Unload app
    End Sub
    End Class
  • 10-31-2005 07:00 PM In reply to

    Hi,

    Try: thisApplication.ActiveWindow.Close(True)

    Regards,

    Franck Dauché
  • 11-01-2005 02:11 PM In reply to

    • nkelkar
    • Not Ranked
    • Joined on 09-30-2005
    • Canada
    • Posts 11
    2 Lines here

    thisXDocument.SetDirty(False)
    thisApplication.Quit(False)
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.