0
我需要添加一个命令行选项来隐藏mi应用程序,如果隐藏表单的参数通过了...在表单加载事件中隐藏表单?
这是一个Windows窗体。
这是我做过尝试,但形式不揣:
Private Sub Parse_Arguments()
For I As Integer = 0 To My.Application.CommandLineArgs.Count - 1
If My.Application.CommandLineArgs.Item(I).ToLower = "/s" Then
Me.Visible = False
Me.Hide()
'Me.Visible = True
End If
Next
End Sub
in c#or vb.net? – Freelancer 2013-04-29 04:32:13
@Freelancer无论语言如何,我都可以稍后翻译它,但是我主张VB.NET,感谢您的评论。 – ElektroStudios 2013-04-29 04:32:46
http://stackoverflow.com/questions/7901848/how-do-i-handle-command-line-arguments-in-winforms-if-i-dont-want-to-load-main参考,可能会有所帮助。 – Freelancer 2013-04-29 04:36:06