.NET Framework - Populating text box after opening default browser with C#
Asked By beanz80
14-Oct-08 03:51 AM
I was recently tasked with creating a .NET application that opens the
default browser to a specific webpage with the user name and password
populated. I have found the following code that uses C# to open IE
shown below
System.Diagnostics.Process process = new
System.Diagnostics.Process();
process.StartInfo.FileName = "http://mywebsite.com";
process.Start();
Is there a way to pass text to the username and password to the
browser before running process.Start() or should I attempt to run a VB
Script after the browser has opened?
Thanks
System.Diagnostics.Process
(1)
WebBrowser
(1)
VB
(1)
Process.StartInfo.FileName
(1)
Script
(1)
Process.Start
(1)
Ignacio Machin ( .NET/ C# MVP ) replied...
Hi,
Not that I know of. at least no in the way you are doing it.
If you use a WebBrowser control then you can populate the controls as
you want.
Eric B. replied...
message
You can make the username & pass part of the url.
http://user:pass@url.com/
Something like that should work.
Eric B.

Foren nutzen. Spamschutz? Hier gab es doch so gut wie keinen Spam. Schade! MfG Susann VB - German Discussions Microsoft Word (1) Windows Server (1) Windows Vista (1) STUDIO one (1) Outlook m?ssen uns jetzt nicht durch den ganzen .Net Salat durchw?hlen, um die die VB-Calssic Beitr?ge lesen zu k?nnen. Gru? W. Wolf Hallo, *Horst Heinrich Dittgens* schrieb will. Mal sehen wann wir Deutschen wirklich dran sind. Ich habe mir mal die bestehenden VB-Foren angesehen, die sind exklusiv f?r VB.Net. Ein Forum darf sich am Rande mit VB6 besch?ftigen, es soll bei der Migration zu VB.Net unterst?tzen. Ob M$ neue Foren f?r VB6 und fr?her einrichtet? Die Glaubt Ihr wirklich, dass M$ f?r VB6 noch Personal bereitstellt? Man wird eher die VB Classic NGs sang- und klanglos einstellen. Ganz besonders fremdsprachliche Gruppen mit geringem Verkehr. Die gro laengerfristig hohem Postigaufkommen laesst sich aber eine Basic bzw. VisualBasic-NG einrichten): microsoft.public.de.vb - -> de.comp.lang.misc microsoft.public.de.vb.datenbank - -> de.comp.datenbanken.misc - -> de.comp.datenbanken.ms-access - -> de.comp.datenbanken.mysql Wer
ex As System.UriFormatException Return End Try End Sub Private sub CercanelSito(ByVal WebBrowserName As WebBrowser, byval NameSito as string, byval titlesito as string) Dim i As Integer = 0 For Each isDocumentOpened As Boolean = True Do While isDocumentOpened System.Threading.Thread.Sleep(1000) Dim procs As System.Diagnostics.Process() = System.Diagnostics.Process.GetProcessesByName("IEXPLORE") isDocumentOpened = False For Each proc As System.Diagnostics.Process In procs isDocumentOpened = proc.MainWindowTitle.Contains("titlesito") If isDocumentOpened Then proc.Kill() Exit
buenas tardes tengo una duda, me dejaron como proyecto hacer un sistema de noticias en vb.net pero y la cuestion es como creo o agrego una direccion URL dentro de un componenete IMage en VB.net gracias VB.NET - Spanish Discussions System.Diagnostics.Process.Start (1 System.Diagnostics.Process (1) PictureBox1.Cursor (1) PictureBox2.Click (1) PictureBox1.Click (1) PictureBox3.Click (1) System
this exception: System.ComponentModel.Win32Exception: Not enough storage is available to process this command at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start(ProcessStartInfo startInfo) Are there any limits to the number of processes started at the System.Diagnostics.ProcessWindowStyle.Hidden; psi.CreateNoWindow = true; / / psi.UseShellExecute = false; / / Tried this, did not help. System.Diagnostics.Process proc = System.Diagnostics.Process.Start(psi); it is on 64-bit Windows with plenty
System.Diagnostics.Process .NET Framework I just installed the VS Studio 2008 express version. I can't seem to be able to use the System.Diagnostics.Process type in a simple program. Any ideas why? error I get is: Error 1 The System; using System.Diagnostics; using System.Reflection; class Program { public static void Main(string[] args) { System.Diagnostics.Process = new Process(); } } C# Discussions Visual Studio 2008 (1) System.Diagnostics.Process (1) System.Diagnostics