vb Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.StartupNextInstance类(方法)实例源码

下面列出了vb Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.StartupNextInstance 类(方法)源码代码实例,从而了解它的用法。

作者:VB.NET开发    项目:Microsoft.VisualBasic.ApplicationService   
Private Sub MyApplication_StartupNextInstance(
    sender As Object,
    e As Microsoft.VisualBasic.ApplicationServices.StartupNextInstanceEventArgs
) Handles Me.StartupNextInstance
    Dim inputArgument As String = "/input="
    Dim inputName As String = ""

    For Each s As String In e.CommandLine
        If s.ToLower.StartsWith(inputArgument) Then
            inputName = s.Remove(0, inputArgument.Length)
        End If
    Next

    If inputName = "" Then
        MsgBox("No input name")
    Else
        MsgBox("Input name: " & inputName)
    End If
End Sub


问题


面经


文章

微信
公众号

扫码关注公众号