Click here to Skip to main content
16,004,944 members
Home / Discussions / C#
   

C#

 
AnswerRe: Listening to program events. Pin
Dave Herren24-May-07 6:26
Dave Herren24-May-07 6:26 
GeneralRe: Listening to program events. Pin
Muntyness24-May-07 6:48
Muntyness24-May-07 6:48 
AnswerRe: Listening to program events. Pin
Dave Kreskowiak24-May-07 6:57
mveDave Kreskowiak24-May-07 6:57 
GeneralRe: Listening to program events. Pin
Muntyness24-May-07 7:26
Muntyness24-May-07 7:26 
Questionread from DAT file Pin
Mohammed Elkholy24-May-07 6:05
Mohammed Elkholy24-May-07 6:05 
AnswerRe: read from DAT file Pin
Tarakeshwar Reddy24-May-07 6:28
professionalTarakeshwar Reddy24-May-07 6:28 
AnswerRe: read from DAT file Pin
Dave Herren24-May-07 6:31
Dave Herren24-May-07 6:31 
QuestionWebbrowser Control--- Text To HTML Pin
chettu24-May-07 4:22
chettu24-May-07 4:22 
Hi,
I am trying convert Text to HTML. i am able to do this using the webbroswer control. My problem is something like this.. After assigning some text to the Webbrowser control i am not able to copy the contents from it immediately. But when i add a message box before copying or do the copy in a different event it works fine... i guess its something to do with the refresh, plz help me solve this. Below is the code i am trying.

<br />
IHTMLDocument2 doc;<br />
public WebBrowser browser;<br />
constructor..<br />
{<br />
browser = new WebBrowser();<br />
}<br />
<br />
click event..<br />
{<br />
     browser.DocumentText = "This is a test message<br />
<br />
     //With this line contents are available. I want to do this without this line.<br />
      MessageBox.Show("Test");<br />
<br />
     doc = (mshtml.IHTMLDocument2)browser.Document.DomDocument;<br />
     Clipboard.Clear();<br />
     doc.execCommand("selectall", false, null);<br />
     doc.execCommand("Copy", false, null);<br />
     RichTextBox r = new RichTextBox();<br />
     r.Paste();<br />
     Clipboard.Clear();<br />
     MessageBox.Show(r.Text.ToString());<br />
}

AnswerRe: Webbrowser Control--- Text To HTML Pin
Dave Herren24-May-07 4:37
Dave Herren24-May-07 4:37 
GeneralRe: Webbrowser Control--- Text To HTML Pin
chettu24-May-07 6:16
chettu24-May-07 6:16 
QuestionBinary or Non-Binary File Pin
DotNetDominator24-May-07 3:27
DotNetDominator24-May-07 3:27 
AnswerRe: Binary or Non-Binary File Pin
Judah Gabriel Himango24-May-07 5:33
sponsorJudah Gabriel Himango24-May-07 5:33 
AnswerRe: Binary or Non-Binary File Pin
Luc Pattyn24-May-07 6:10
sitebuilderLuc Pattyn24-May-07 6:10 
GeneralRe: Binary or Non-Binary File Pin
DotNetDominator24-May-07 9:33
DotNetDominator24-May-07 9:33 
GeneralRe: Binary or Non-Binary File Pin
Luc Pattyn24-May-07 9:59
sitebuilderLuc Pattyn24-May-07 9:59 
QuestionI am getting PDF error Pin
adilkazmi24-May-07 3:08
adilkazmi24-May-07 3:08 
AnswerRe: I am getting PDF error Pin
Colin Angus Mackay24-May-07 4:47
Colin Angus Mackay24-May-07 4:47 
JokeRe: I am getting PDF error Pin
Martin#24-May-07 5:17
Martin#24-May-07 5:17 
QuestionHow do I create a dock able toolbar in C# like the office toolbar Pin
Sagar Pattnayak24-May-07 3:06
Sagar Pattnayak24-May-07 3:06 
AnswerRe: How do I create a dock able toolbar in C# like the office toolbar Pin
Martin#24-May-07 3:15
Martin#24-May-07 3:15 
QuestionContext Menu Click Pin
deep_C#24-May-07 2:21
deep_C#24-May-07 2:21 
AnswerRe: Context Menu Click Pin
Giorgi Dalakishvili24-May-07 2:26
mentorGiorgi Dalakishvili24-May-07 2:26 
QuestionRe: Context Menu Click Pin
deep_C#24-May-07 2:35
deep_C#24-May-07 2:35 
AnswerRe: Context Menu Click Pin
Giorgi Dalakishvili24-May-07 2:38
mentorGiorgi Dalakishvili24-May-07 2:38 
GeneralRe: Context Menu Click Pin
deep_C#24-May-07 2:58
deep_C#24-May-07 2:58 

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.