Hey
firslt , i have a webbrowser with a textbox that has :
aurl.Text = WebBrowser1.Url.AbsoluteUri
well the problem is that , when i type a wrong web adress , the value of WebBrowser1.Url.AbsoluteUri becomes null and an error occurs
i was wondering , is there any way to escape this bug like what code i should put
and also
i need the code for a timer who will check if a process called "JPCUpdate" is running
if u can help me with this , that would be good

a few questons on webbrowser, proccess
Kirill Tropin
it all worked
but just a few comments :
1.
in
Try
aURL.Text = WebBrowser1.Url.AbsoluteUri
Catch ex As Exception
MsgBox("URL is invalid or other error occured")
End Try
its a timer so having a message box in there would send me tons of messages lol
Fluxtah
as for the timer just drag and drop a UI timer into the form and set your interval, and create the Tick event (double click timer) and get a list of processes and see if the JPCUpdate is running.
Dim theListOfProcess() as Process = System.Diagnostics.Process
theListOfProcess = System.Diagnostics.Process.GetProcessesByName("yourProcessName")
if theListOfProcess.Length = 0 then
'process isnt running, do something about it.
end if
As for your first question, its not a bug at all, its the design - if there is something invalid, the Uri will of course be set to null/nothing
does this help
JDeciple
For your 1st question, how about:
TryaURL.Text = WebBrowser1.Url.AbsoluteUri
Catch ex As ExceptionMsgBox(
"URL is invalid or other error occured") End Try