Passing argument to windows application
I need to be able to pass an argument to my windows application so that I
can run the code based on the argument passed:
Private Sub Start_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Try
Dim Mgr As New StartMgr
Mgr.Import() // from here controls goes to a class library and it
the whole //code, I need this function Import(arg) so that it can
run partial code based on args
Me.Visible = False
Me.Close()
Catch ex As Exception
Finally
Application.Exit()
End Try
End Sub
No comments:
Post a Comment