I am having the same problem with a simple C# example using Microsoft Visual Studio .Net 2003
Can you post the entire working C++ example that works under MVS .Net 2003? Thanks. "Thomas Max" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Paul Mace schrieb: > > 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 > > Hi Paul, > in C++ it works, but i need to get it working in C#. > Can you also give me some working sample code for C# ? > > Thomas _______________________________________________ mozilla-embedding mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-embedding
