Click here to Skip to main content
16,005,149 members
Home / Discussions / C#
   

C#

 
Generalproblem with threads Pin
Ravikumar_mv26-Jun-04 3:47
Ravikumar_mv26-Jun-04 3:47 
GeneralRe: problem with threads Pin
Stefan Troschuetz26-Jun-04 12:27
Stefan Troschuetz26-Jun-04 12:27 
GeneralRe: problem with threads Pin
Ravikumar_mv27-Jun-04 18:19
Ravikumar_mv27-Jun-04 18:19 
GeneralASerial Communication Pin
ahmed mohamed abdelhameed26-Jun-04 0:14
ahmed mohamed abdelhameed26-Jun-04 0:14 
Generalaxwebbrowser Pin
fatidarya25-Jun-04 19:27
fatidarya25-Jun-04 19:27 
GeneralRe: axwebbrowser Pin
Heath Stewart26-Jun-04 14:25
protectorHeath Stewart26-Jun-04 14:25 
GeneralRe: axwebbrowser Pin
fatidarya26-Jun-04 20:59
fatidarya26-Jun-04 20:59 
GeneralRe: axwebbrowser Pin
Heath Stewart27-Jun-04 5:48
protectorHeath Stewart27-Jun-04 5:48 
That's terribly inefficient. The RichTextBox already supports all that - changing the selected font, etc.

As I mentioned before (and you continue to waste performance and memory on such a large solution using the WebBrowser control), you enumerate the IHTMLElements from the IHTMLDocument2.all collection. When you find the elements you want, concat the text:
string str = string.Empty;
foreach (IHTMLElement2 elem in doc.all)
{
  IHTMLInputElement input = elem as IHTMLInputElement;
  if (elem != null) str += input.value;
}
This is untested, but should give you an idea of how to concat text from text boxes. You should refer to the MSHTML reference to know how else to do things. Anything you can do in scripting you can do with MSHTML and more.

Read the MSHTML Reference[^].

 

Microsoft MVP, Visual C#
My Articles
Generalopendialog Pin
fatidarya25-Jun-04 18:56
fatidarya25-Jun-04 18:56 
GeneralRe: opendialog Pin
Stefan Troschuetz26-Jun-04 12:32
Stefan Troschuetz26-Jun-04 12:32 
GeneralRe: font of selected text of textbox Pin
leppie25-Jun-04 21:52
leppie25-Jun-04 21:52 
GeneralRe: font of selected text of textbox Pin
Anonymous25-Jun-04 22:20
Anonymous25-Jun-04 22:20 
GeneralRe: font of selected text of textbox Pin
fatidarya25-Jun-04 22:32
fatidarya25-Jun-04 22:32 
GeneralRe: font of selected text of textbox Pin
Dave Kreskowiak26-Jun-04 17:56
mveDave Kreskowiak26-Jun-04 17:56 
Generalosql.exe Pin
devvvy25-Jun-04 18:41
devvvy25-Jun-04 18:41 
GeneralRe: osql.exe Pin
Heath Stewart26-Jun-04 14:19
protectorHeath Stewart26-Jun-04 14:19 
GeneralRe: osql.exe Pin
Anonymous26-Jun-04 14:41
Anonymous26-Jun-04 14:41 
Generalchange data in C++ dll by C# program Pin
ting66825-Jun-04 17:13
ting66825-Jun-04 17:13 
GeneralRe: change data in C++ dll by C# program Pin
Heath Stewart26-Jun-04 14:13
protectorHeath Stewart26-Jun-04 14:13 
GeneralRe: change data in C++ dll by C# program Pin
ting6687-Jul-04 4:19
ting6687-Jul-04 4:19 
GeneralRe: change data in C++ dll by C# program Pin
Heath Stewart7-Jul-04 4:31
protectorHeath Stewart7-Jul-04 4:31 
GeneralRe: change data in C++ dll by C# program Pin
ting6687-Jul-04 5:21
ting6687-Jul-04 5:21 
GeneralRe: change data in C++ dll by C# program Pin
Heath Stewart7-Jul-04 5:38
protectorHeath Stewart7-Jul-04 5:38 
GeneralRe: change data in C++ dll by C# program Pin
ting6687-Jul-04 15:58
ting6687-Jul-04 15:58 
GeneralRe: change data in C++ dll by C# program Pin
ting6687-Jul-04 15:52
ting6687-Jul-04 15:52 

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.