saurabhtiwari 0 Newbie Poster

Hi,
I m getting one error in the following code on the underlined statement plz help me.

public static bool IEOpenOnURL(string sURL) 

{

InternetExplorer ie = (InternetExplorer)[U]NSLibStatic.COMCreateObject[/U]("InternetExplorer.Application"); 

if (ie != null) 

{ 

object oEmpty = String.Empty; 

object oURL= sURL; 

ie.Visible = true; 

ie.Navigate2 (ref oURL, ref oEmpty, ref oEmpty, ref oEmpty, ref oEmpty); 

}

return true; 

}