Click here to Skip to main content
15,892,927 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to use a macro in c# Pin
Programm3r22-Sep-09 2:53
Programm3r22-Sep-09 2:53 
GeneralRe: how to use a macro in c# Pin
thecodedemon23-Sep-09 13:30
thecodedemon23-Sep-09 13:30 
AnswerRe: how to use a macro in c# Pin
Programm3r22-Sep-09 2:57
Programm3r22-Sep-09 2:57 
QuestionPlaying with Enumerations Pin
ezazazel22-Sep-09 0:45
ezazazel22-Sep-09 0:45 
AnswerRe: Playing with Enumerations Pin
harold aptroot22-Sep-09 0:54
harold aptroot22-Sep-09 0:54 
AnswerRe: Playing with Enumerations Pin
Gideon Engelberth22-Sep-09 2:51
Gideon Engelberth22-Sep-09 2:51 
GeneralRe: Playing with Enumerations Pin
ezazazel22-Sep-09 6:49
ezazazel22-Sep-09 6:49 
AnswerRe: Playing with Enumerations Pin
PIEBALDconsult22-Sep-09 4:07
mvePIEBALDconsult22-Sep-09 4:07 
GeneralRe: Playing with Enumerations Pin
ezazazel22-Sep-09 6:47
ezazazel22-Sep-09 6:47 
GeneralRe: Playing with Enumerations Pin
PIEBALDconsult22-Sep-09 13:52
mvePIEBALDconsult22-Sep-09 13:52 
QuestionGetting data from a Listbox controlled by WPF and XML Pin
reg.orton22-Sep-09 0:24
reg.orton22-Sep-09 0:24 
AnswerRe: Getting data from a Listbox controlled by WPF and XML Pin
vivasaayi22-Sep-09 19:37
vivasaayi22-Sep-09 19:37 
GeneralRe: Getting data from a Listbox controlled by WPF and XML Pin
reg.orton23-Sep-09 3:37
reg.orton23-Sep-09 3:37 
QuestionHow to insert javascript funtion dynamically ? Pin
Jacobb Michael21-Sep-09 23:38
Jacobb Michael21-Sep-09 23:38 
AnswerRe: How to insert javascript funtion dynamically ? Pin
Amit Patel198521-Sep-09 23:49
Amit Patel198521-Sep-09 23:49 
GeneralRe: How to insert javascript funtion dynamically ? Pin
Jacobb Michael21-Sep-09 23:52
Jacobb Michael21-Sep-09 23:52 
AnswerRe: How to insert javascript funtion dynamically ? Pin
Amit Patel198522-Sep-09 0:03
Amit Patel198522-Sep-09 0:03 
GeneralRe: How to insert javascript funtion dynamically ? Pin
Jacobb Michael22-Sep-09 0:10
Jacobb Michael22-Sep-09 0: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 22:40
amir-haghighi21-Sep-09 22:40 
AnswerRe: how to Collect selected text in the richtextbox Pin
SummerBulb21-Sep-09 23:18
SummerBulb21-Sep-09 23:18 
AnswerRe: how to Collect selected text in the richtextbox Pin
OriginalGriff21-Sep-09 23:29
mveOriginalGriff21-Sep-09 23:29 
GeneralRe: how to Collect selected text in the richtextbox Pin
amir-haghighi22-Sep-09 5:33
amir-haghighi22-Sep-09 5:33 
GeneralRe: how to Collect selected text in the richtextbox Pin
OriginalGriff22-Sep-09 6:05
mveOriginalGriff22-Sep-09 6:05 
GeneralRe: how to Collect selected text in the richtextbox Pin
amir-haghighi27-Oct-09 0:33
amir-haghighi27-Oct-09 0:33 
Question[Message Deleted] Pin
ShaktisinhRathod21-Sep-09 22:15
ShaktisinhRathod21-Sep-09 22:15 

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.