That code looks fine. Is there anything else going on before this? Debug, and verify that this is where the error occurs.
>I placed a MS Web Browser Control on a form
>and in the form Init I have:
>
>ThisForm.oleBrowserCtrl.Navigate(cUrl)
>
>When the form starts, I get the message:
>
>"An undetermined error occured"
>
>Can anyone help with this one?
Doug Stalter
"According to the proverb, the best things are the most difficult." -Plutarch