Chrome [vb.net] 크롬이 열려 있으면 새창으로 열기
페이지 정보

본문
        Dim chrome As Boolean
        Dim url As String = "fb.com"
        Dim pname As Process() = Process.GetProcessesByName("chrome")
 
        If pname.Length = 0 Then
            chrome = False
        Else
            If Not chrome Then
                Dim process As Process = New Process()
                process.StartInfo.FileName = "chrome"
                process.StartInfo.Arguments = url + " --new-window"
                process.StartInfo.WindowStyle = ProcessWindowStyle.Minimized
                process.Start()
            End If
 
            chrome = True
        End If
댓글목록
등록된 댓글이 없습니다.



