Thomas Max wrote:
I'm trying to embed Mozilla through Adam Locks Mozilla Active X Control into my C# Application. I can access the Browser Object, but if I call the Navigate method the Application hangs up.
I couldn't figure out how to get it working. With IE it is working in C#.


Here is my code :

private void btn_Go_Click(object sender, System.EventArgs e)
{
System.Object nullObject = 0;
string str = "";
System.Object nullObjStr = str; axMozillaBrowser1.Navigate("http://www.google.com";, ref nullObject, ref nullObjStr, ref nullObjStr, ref nullObjStr);
}



Do I have to call some other browser specific methods or how does it work.

Please help me.

Thanks in advance.

Regards
Thomas

Thomas,

Here's a c++ fragment that uses Adam's component and Navigate2

        VARIANT vUrl;
        vUrl.vt = varOleStr;
        vUrl.bstrVal= url;
        // only browse if url is valid
        if( MainForm->StatusBar1->SimpleText.Length()>0)
                MozillaBrowser1->Navigate2(&vUrl);

Note the argument is COM type VARIANT...

Paul Mace
_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to