Click here to Skip to main content
15,895,142 members
Home / Discussions / C#
   

C#

 
AnswerRe: i want help in richtextbox problem Pin
sph3rex9-Nov-08 2:10
sph3rex9-Nov-08 2:10 
QuestionC# calling a webpage issues , whilst same URL works in FireFox Pin
Hyperionza7-Nov-08 9:59
Hyperionza7-Nov-08 9:59 
AnswerRe: C# calling a webpage issues , whilst same URL works in FireFox Pin
Guffa7-Nov-08 11:16
Guffa7-Nov-08 11:16 
GeneralRe: C# calling a webpage issues , whilst same URL works in FireFox Pin
Hyperionza7-Nov-08 21:58
Hyperionza7-Nov-08 21:58 
GeneralRe: C# calling a webpage issues , whilst same URL works in FireFox Pin
sph3rex8-Nov-08 6:20
sph3rex8-Nov-08 6:20 
GeneralRe: C# calling a webpage issues , whilst same URL works in FireFox Pin
Hyperionza8-Nov-08 23:38
Hyperionza8-Nov-08 23:38 
QuestionHow to change Group Header Font in Crystal Report Left Most Group Tree? Pin
majidbhutta7-Nov-08 7:32
majidbhutta7-Nov-08 7:32 
Questionmicrosoft loading problem Pin
netJP12L7-Nov-08 7:06
netJP12L7-Nov-08 7:06 
Hi guys, there is a problem with microsoft webbrowser C# control, because I couldn't find any bug in my code. Randomly, I get to see mytext value null. When i debug a few times i have seen doc.body as being null. I have also noticed that Documentcomplete event doesn't get fire always. I couldn't find any cure for my program. I hope only gurus can help me out.

string mytext="";
mshtml.IHTMLDocument2 doc = null;
public void LoadHTML(string filepath)
{
webBrowser1.Navigate(filepath);
webBrowser1.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler (webBrowser1_DocumentCompleted);
}
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
if (((WebBrowser)sender).ReadyState == WebBrowserReadyState.Complete)
{
doc = webBrowser1.Document.DomDocument as mshtml.IHTMLDocument2;
doc.designMode = "On";
mytext= doc.body.innerHTML;
MessageBox.Show(mytext);
}
}

Thanks to any genius, got to better than me
AnswerRe: microsoft loading problem Pin
sph3rex8-Nov-08 6:12
sph3rex8-Nov-08 6:12 
QuestionDetect which process is accessing a file Pin
Aram Azhari7-Nov-08 6:00
Aram Azhari7-Nov-08 6:00 
AnswerRe: Detect which process is accessing a file Pin
Giorgi Dalakishvili7-Nov-08 6:34
mentorGiorgi Dalakishvili7-Nov-08 6:34 
Questionhash value of user password from Domain Pin
Member 31961327-Nov-08 5:11
Member 31961327-Nov-08 5:11 
AnswerRe: hash value of user password from Domain Pin
Dave Kreskowiak7-Nov-08 7:33
mveDave Kreskowiak7-Nov-08 7:33 
AnswerRe: hash value of user password from Domain Pin
Dan Neely7-Nov-08 10:26
Dan Neely7-Nov-08 10:26 
Questioncalling C# code from SQL Server procedure. Pin
pankazmittal7-Nov-08 4:10
pankazmittal7-Nov-08 4:10 
AnswerRe: calling C# code from SQL Server procedure. Pin
Simon P Stevens7-Nov-08 4:33
Simon P Stevens7-Nov-08 4:33 
AnswerRe: calling C# code from SQL Server procedure. Pin
Guffa7-Nov-08 11:37
Guffa7-Nov-08 11:37 
AnswerRe: calling C# code from SQL Server procedure. Pin
Atif Shahbaz8-Nov-08 6:18
Atif Shahbaz8-Nov-08 6:18 
QuestionCopying an object instance instead of a reference [modified] Pin
Ankit Rajpoot7-Nov-08 3:54
Ankit Rajpoot7-Nov-08 3:54 
AnswerRe: Copying an object instance instead of a reference Pin
J a a n s7-Nov-08 4:01
professionalJ a a n s7-Nov-08 4:01 
GeneralRe: Copying an object instance instead of a reference Pin
Simon P Stevens7-Nov-08 4:26
Simon P Stevens7-Nov-08 4:26 
AnswerRe: Copying an object instance instead of a reference Pin
J4amieC7-Nov-08 4:06
J4amieC7-Nov-08 4:06 
GeneralRe: Copying an object instance instead of a reference Pin
Ankit Rajpoot7-Nov-08 4:16
Ankit Rajpoot7-Nov-08 4:16 
GeneralRe: Copying an object instance instead of a reference Pin
Simon P Stevens7-Nov-08 4:38
Simon P Stevens7-Nov-08 4:38 
GeneralRe: Copying an object instance instead of a reference Pin
Ankit Rajpoot7-Nov-08 5:08
Ankit Rajpoot7-Nov-08 5:08 

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.