I have a VB.net application that at the climax of it calls this in a startnewbrowser function
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.
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)