Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27248

VS 2008 how to pass the values to browser window both user name and password

$
0
0
I have a VB.net application that at the climax of it calls this in a startnewbrowser function

Code:

Public Function StartNewBrowser(ByVal sURL As Object) As SHDocVw.InternetExplorer

            Dim SUCCESS As Long
        Dim sBrowser As String
        Dim start As STARTUPINFO
        Dim proc As PROCESS_INFORMATION
        Dim sCmdLine As String

        StartNewBrowser = Nothing
        sBrowser = "C:\Program Files\Internet Explorer\IEXPLORE.EXE "
        SUCCESS = 33
        'did sBrowser get correctly filled?

        sCmdLine = BuildCommandLine(sBrowser)

                With start
            .cb = Len(start)
            .dwFlags = STARTF_USESHOWWINDOW
            .wShowWindow = SW_SHOWNORMAL
        End With
                AmisysLauncher.WebBrowser1.Navigate(sURL)

        AmisysLauncher.WebBrowser1.Visible = True
       
        Process.Start("C:\Program Files\Internet Explorer\IEXPLORE.EXE", sURL)

The browser window is called in bold above but just before that happens I have two textbox values one holding a username and the other a password that needs to be passed to the browser window. Now this application is a windows app and not a web app and so I need to know please how to pass the values to the browser session... as I don't think postback or response.redirect is an option. Thanks in advance.

Viewing all articles
Browse latest Browse all 27248


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>