Click here to Skip to main content
15,913,253 members
Home / Discussions / C#
   

C#

 
GeneralRe: ngen/obsfucator Pin
Dave Kreskowiak23-Jun-05 16:53
mveDave Kreskowiak23-Jun-05 16:53 
GeneralRe: ngen/obsfucator Pin
Christian Graus23-Jun-05 16:54
protectorChristian Graus23-Jun-05 16:54 
GeneralRe: ngen/obsfucator Pin
Ashok Dhamija23-Jun-05 20:06
Ashok Dhamija23-Jun-05 20:06 
GeneralRe: ngen/obsfucator Pin
Dave Kreskowiak24-Jun-05 1:34
mveDave Kreskowiak24-Jun-05 1:34 
GeneralRe: ngen/obsfucator Pin
Ashok Dhamija24-Jun-05 2:39
Ashok Dhamija24-Jun-05 2:39 
GeneralRe: ngen/obsfucator Pin
leppie24-Jun-05 7:00
leppie24-Jun-05 7:00 
GeneralRe: ngen/obsfucator Pin
leppie25-Jun-05 9:53
leppie25-Jun-05 9:53 
GeneralWebBrowser Pin
Lasse Johansen23-Jun-05 12:50
Lasse Johansen23-Jun-05 12:50 
I want to encapsulate the webbrowser even further than it already is. The reason is that I have tons of functions that operates on AxWebBrowser, so it would be logic to make these member functions of the AxWebBrowser class.

I always needs to load the same html page, so I do this in a member override:

protected override void CreateSink()
{
base.CreateSink ();

object empty = System.Reflection.Missing.Value;
this.NavigateComplete2 += new AxSHDocVw.DWebBrowserEvents2_NavigateComplete2EventHandler(VETViewer_NavigateComplete2);
this.Navigate("page.html", ref empty, ref empty, ref empty, ref empty);
}

What I am interested in is calling my functions like this:

public Form1()
{
InitializeComponent();
this.axWebBrowser1.Function1(); // This causes an error, since the navigateComplete2 event has not yet arrived
}

My problem is that I MUST NOT CALL ANY OF MY MEMBER FUNCTIONS before the NavigateComplete2 event has been fired.
I first thought the event would be fired on a different thread (so i could do thread synchronization), but that is NOT the case. It looks like the webbrowser waits for a navigatecomplete2 complete message, which will be called loooong time after Form1 has been completed. What can I do here? Confused | :confused:



Gooky
GeneralNetwork Libraries Pin
palwhatsup23-Jun-05 12:20
palwhatsup23-Jun-05 12:20 
GeneralRe: Network Libraries Pin
Mohamad Al Husseiny2-Sep-05 15:33
Mohamad Al Husseiny2-Sep-05 15:33 
GeneralTransparency Invalidate Pin
Anonymous23-Jun-05 12:15
Anonymous23-Jun-05 12:15 
GeneralRe: Transparency Invalidate Pin
MoustafaS23-Jun-05 16:50
MoustafaS23-Jun-05 16:50 
GeneralRe: Transparency Invalidate Pin
Anonymous24-Jun-05 1:47
Anonymous24-Jun-05 1:47 
GeneralRe: Transparency Invalidate Pin
MoustafaS24-Jun-05 5:18
MoustafaS24-Jun-05 5:18 
GeneralRe: Transparency Invalidate Pin
Anonymous24-Jun-05 6:16
Anonymous24-Jun-05 6:16 
GeneralSetup Project Headaches Pin
jasontg23-Jun-05 11:43
jasontg23-Jun-05 11:43 
GeneralRe: Setup Project Headaches Pin
Sebastian Schneider23-Jun-05 22:14
Sebastian Schneider23-Jun-05 22:14 
GeneralRe: Setup Project Headaches Pin
jasontg24-Jun-05 4:51
jasontg24-Jun-05 4:51 
GeneralNetworking Pin
davidtp23-Jun-05 11:11
davidtp23-Jun-05 11:11 
GeneralRe: Networking Pin
Sebastian Schneider23-Jun-05 22:18
Sebastian Schneider23-Jun-05 22:18 
GeneralRe: Networking Pin
davidtp23-Jun-05 22:32
davidtp23-Jun-05 22:32 
GeneralRe: Networking Pin
Sebastian Schneider24-Jun-05 3:59
Sebastian Schneider24-Jun-05 3:59 
QuestionWord to xml using C#? Pin
methodincharge23-Jun-05 10:22
methodincharge23-Jun-05 10:22 
AnswerRe: Word to xml using C#? Pin
Dan Neely23-Jun-05 10:51
Dan Neely23-Jun-05 10:51 
Generalget excel sheets from c# Pin
drey123-Jun-05 10:21
drey123-Jun-05 10:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.