Click here to Skip to main content
15,900,110 members
Home / Discussions / C#
   

C#

 
AnswerRe: Object containing structures or array Pin
DaveyM699-Oct-08 23:04
professionalDaveyM699-Oct-08 23:04 
AnswerRe: Object containing structures or array Pin
Guffa9-Oct-08 23:45
Guffa9-Oct-08 23:45 
GeneralRe: Object containing structures or array Pin
davidbrammer11-Oct-08 5:11
davidbrammer11-Oct-08 5:11 
QuestionHow to extend SharePoint Components/Features ? Pin
hdv2129-Oct-08 9:47
hdv2129-Oct-08 9:47 
Questionrun a method after getting a reponse it is done Pin
netJP12L9-Oct-08 9:25
netJP12L9-Oct-08 9:25 
AnswerRe: run a method after getting a reponse it is done Pin
Wendelius9-Oct-08 9:33
mentorWendelius9-Oct-08 9:33 
AnswerRe: run a method after getting a reponse it is done Pin
Anthony Mushrow9-Oct-08 9:56
professionalAnthony Mushrow9-Oct-08 9:56 
GeneralRe: run a method after getting a reponse it is done Pin
netJP12L9-Oct-08 10:13
netJP12L9-Oct-08 10:13 
What was happening is that sometimes the webbrowser1 couldn't load the document and i get the default html error page inside the webbrowser1. I want to load wb2 only if a html document has been fully loaded in webbrowser1 then load it in wb2. Can you please provide me some e.g for be better understanding too

Form1.cs
{
webBrowser1 = new WebBrowser();
webBrowser1.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(webBrowser1_DocumentCompleted);

path = "c:\a.html"
webBrowser1.Navigate(path);
Controls.Add(webBrowser1);

void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
if (((WebBrowser)sender).ReadyState == WebBrowserReadyState.Complete )
{
//once the document is completely loaded
doc = webBrowser1.Document.DomDocument as mshtml.IHTMLDocument2;
doc.designMode = "On";

if (!webBrowser1.IsBusy)
{
wb2 = new WebBrowser();
wb2.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler (wb2_DocumentCompleted);
wb2.Navigate(path);
}

}
}
GeneralRe: run a method after getting a reponse it is done Pin
Anthony Mushrow9-Oct-08 10:31
professionalAnthony Mushrow9-Oct-08 10:31 
QuestionVisual Studio 2008 - Report Viewer does show on WinForm Pin
tkmarshall9-Oct-08 9:05
tkmarshall9-Oct-08 9:05 
AnswerRe: Visual Studio 2008 - Report Viewer does show on WinForm Pin
Wendelius9-Oct-08 9:44
mentorWendelius9-Oct-08 9:44 
GeneralRe: Visual Studio 2008 - Report Viewer does show on WinForm Pin
tkmarshall9-Oct-08 10:55
tkmarshall9-Oct-08 10:55 
GeneralRe: Visual Studio 2008 - Report Viewer does show on WinForm Pin
Wendelius9-Oct-08 11:00
mentorWendelius9-Oct-08 11:00 
GeneralRe: Visual Studio 2008 - Report Viewer does show on WinForm Pin
tkmarshall10-Oct-08 4:58
tkmarshall10-Oct-08 4:58 
GeneralRe: Visual Studio 2008 - Report Viewer does show on WinForm Pin
Wendelius10-Oct-08 6:38
mentorWendelius10-Oct-08 6:38 
QuestionApp.Config Encrypt section, not saving Pin
Bill Warner9-Oct-08 8:12
Bill Warner9-Oct-08 8:12 
QuestionAnonymous constructor for Dictionary Pin
ezazazel9-Oct-08 7:50
ezazazel9-Oct-08 7:50 
AnswerRe: Anonymous constructor for Dictionary Pin
Daniel Grunwald9-Oct-08 8:02
Daniel Grunwald9-Oct-08 8:02 
GeneralRe: Anonymous constructor for Dictionary Pin
ezazazel9-Oct-08 8:04
ezazazel9-Oct-08 8:04 
Questionsummation Pin
Monin D.9-Oct-08 7:11
Monin D.9-Oct-08 7:11 
AnswerRe: summation Pin
Dan Neely9-Oct-08 7:18
Dan Neely9-Oct-08 7:18 
AnswerRe: summation Pin
DaveyM699-Oct-08 7:53
professionalDaveyM699-Oct-08 7:53 
AnswerRe: summation Pin
ezazazel9-Oct-08 8:03
ezazazel9-Oct-08 8:03 
GeneralRe: summation Pin
Monin D.9-Oct-08 11:09
Monin D.9-Oct-08 11:09 
AnswerRe: summation Pin
#realJSOP9-Oct-08 8:48
professional#realJSOP9-Oct-08 8:48 

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.