Click here to Skip to main content
15,505,380 members
Home / Discussions / C#
   

C#

 
QuestionGetting data from a Listbox controlled by WPF and XML Pin
reg.orton22-Sep-09 1:24
reg.orton22-Sep-09 1:24 
AnswerRe: Getting data from a Listbox controlled by WPF and XML Pin
vivasaayi22-Sep-09 20:37
vivasaayi22-Sep-09 20:37 
GeneralRe: Getting data from a Listbox controlled by WPF and XML Pin
reg.orton23-Sep-09 4:37
reg.orton23-Sep-09 4:37 
QuestionHow to insert javascript funtion dynamically ? Pin
Jacobb Michael22-Sep-09 0:38
Jacobb Michael22-Sep-09 0:38 
AnswerRe: How to insert javascript funtion dynamically ? Pin
Amit Patel198522-Sep-09 0:49
Amit Patel198522-Sep-09 0:49 
GeneralRe: How to insert javascript funtion dynamically ? Pin
Jacobb Michael22-Sep-09 0:52
Jacobb Michael22-Sep-09 0:52 
AnswerRe: How to insert javascript funtion dynamically ? Pin
Amit Patel198522-Sep-09 1:03
Amit Patel198522-Sep-09 1:03 
GeneralRe: How to insert javascript funtion dynamically ? Pin
Jacobb Michael22-Sep-09 1:10
Jacobb Michael22-Sep-09 1:10 
Hi Friend,

Thank you,

I am using web browser control, in windows application,
so i get all the HtmlElement like body,form,div etc...
from there i want to attache this.

have a look at my code

mshtml.IHTMLElementCollection ecol = document.all;//getElementsByTagName("head");
                   if (ecol != null)
                   {
                       foreach (IHTMLElement elmnt in ecol)
                       {
                           string str = elmnt.outerText;
                           int k = 0;
                           if (elmnt.ToString() == "mshtml.HTMLHeadElementClass")
                           {
                               mshtml.IHTMLHeadElement head = (mshtml.IHTMLHeadElement)elmnt;
                               //mshtml.IHTMLElement se = document.createElement("script");
                               mshtml.IHTMLScriptElement element = (mshtml.IHTMLScriptElement)document.createElement("script");
                               //element.text = "alert('here we are')";
                               element.text ="function EventRaise(){var m = document.activeElement.value;alert(document.activeElement.type);alert('The active element is '+m); }";
                               IHTMLDOMNode node = (IHTMLDOMNode)element;
                               document.appendChild(node);

                           }
                           else if (elmnt.ToString() == "mshtml.HTMLBodyClass")
                           {

                               //need to call the EventRaise function
                           }
                       }
                   }




i hope you may have some idea on that...

awaiting...
Questionhow to Collect selected text in the richtextbox Pin
amir-haghighi21-Sep-09 23:40
amir-haghighi21-Sep-09 23:40 
AnswerRe: how to Collect selected text in the richtextbox Pin
SummerBulb22-Sep-09 0:18
SummerBulb22-Sep-09 0:18 
AnswerRe: how to Collect selected text in the richtextbox Pin
OriginalGriff22-Sep-09 0:29
mveOriginalGriff22-Sep-09 0:29 
GeneralRe: how to Collect selected text in the richtextbox Pin
amir-haghighi22-Sep-09 6:33
amir-haghighi22-Sep-09 6:33 
GeneralRe: how to Collect selected text in the richtextbox Pin
OriginalGriff22-Sep-09 7:05
mveOriginalGriff22-Sep-09 7:05 
GeneralRe: how to Collect selected text in the richtextbox Pin
amir-haghighi27-Oct-09 1:33
amir-haghighi27-Oct-09 1:33 
Question[Message Deleted] Pin
ShaktisinhRathod21-Sep-09 23:15
ShaktisinhRathod21-Sep-09 23:15 
AnswerRe: Invalid Argument in Word.Document.SaveAS(,,) Interop.Microsoft.Office.Core.dll Pin
OriginalGriff22-Sep-09 0:19
mveOriginalGriff22-Sep-09 0:19 
General[Message Deleted] Pin
ShaktisinhRathod22-Sep-09 1:39
ShaktisinhRathod22-Sep-09 1:39 
GeneralRe: Invalid Argument in Word.Document.SaveAS(,,) Interop.Microsoft.Office.Core.dll Pin
OriginalGriff22-Sep-09 1:49
mveOriginalGriff22-Sep-09 1:49 
General[Message Deleted] Pin
ShaktisinhRathod22-Sep-09 2:36
ShaktisinhRathod22-Sep-09 2:36 
GeneralRe: Method Not Found Word._Document.SaveAs(System.Object Byref..,,,,16 argument).. Pin
OriginalGriff22-Sep-09 4:37
mveOriginalGriff22-Sep-09 4:37 
Questionre: initialising a runtime class Pin
jdneul21-Sep-09 21:17
jdneul21-Sep-09 21:17 
AnswerRe: re: initialising a runtime class Pin
SeMartens21-Sep-09 21:26
SeMartens21-Sep-09 21:26 
AnswerRe: re: initialising a runtime class Pin
Mirko198021-Sep-09 23:24
Mirko198021-Sep-09 23:24 
GeneralRe: re: initialising a runtime class Pin
jdneul21-Sep-09 23:36
jdneul21-Sep-09 23:36 
GeneralRe: re: initialising a runtime class Pin
Mirko198022-Sep-09 0:51
Mirko198022-Sep-09 0:51 

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.