Click here to Skip to main content
15,909,939 members
Home / Discussions / C#
   

C#

 
GeneralRe: multiple tables binding to a grid Pin
Heath Stewart1-Feb-05 15:16
protectorHeath Stewart1-Feb-05 15:16 
GeneralHyperlink Value Pin
myousufq1-Feb-05 10:12
myousufq1-Feb-05 10:12 
GeneralRe: Hyperlink Value Pin
Heath Stewart1-Feb-05 10:20
protectorHeath Stewart1-Feb-05 10:20 
GeneralRe: Hyperlink Value Pin
myousufq1-Feb-05 10:37
myousufq1-Feb-05 10:37 
GeneralRe: Hyperlink Value Pin
Heath Stewart1-Feb-05 10:52
protectorHeath Stewart1-Feb-05 10:52 
GeneralRe: Hyperlink Value Pin
Heath Stewart1-Feb-05 10:56
protectorHeath Stewart1-Feb-05 10:56 
GeneralRe: Hyperlink Value Pin
myousufq2-Feb-05 3:39
myousufq2-Feb-05 3:39 
GeneralRe: Hyperlink Value Pin
Heath Stewart2-Feb-05 6:30
protectorHeath Stewart2-Feb-05 6:30 
You need to handle the IHTMLDocument2.body's onmouseover event in order to get the current element under the mouse. Copy the code snippet and see how it works in the browser. Everything JScript can do your application can do because they use the same automation server - the WebBrowser control or MSHTML (which is hosted by the WebBrowser control):
<html>
  <head>
    <title>Test</title>
  </head>
  <body onmouseover="showCurrentElement(event)">
    <p>This is a paragraph of text with a <a href="http://www.microsoft.com">hyperlink</a> embedded.</p>
    <p><b>Look at me - I'm bold!</b></p>
    <ul>
      <li>Item 1</li>
      <li>Item 2</li>
      <li>Item 3</li>
    </ul>
    <p id="currentElement"></p>
  </body>
  <script type="text/jscript">
    function showCurrentElement(e)
    {
      var lbl = document.getElementById("currentElement");
      if (lbl)
      {
        lbl.innerText = e.srcElement.tagName;
      }
    }
  </script>
</html>
You really need to read the links I gave you regarding COM interop. There's also several articles on this site about programming with the WebBrowser control, as well as on MSDN[^]. There's a lot to understand, but it's not difficult especially if you understand COM.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: Hyperlink Value Pin
myousufq2-Feb-05 7:22
myousufq2-Feb-05 7:22 
GeneralRe: Hyperlink Value Pin
Heath Stewart2-Feb-05 7:29
protectorHeath Stewart2-Feb-05 7:29 
GeneralRe: Hyperlink Value Pin
myousufq3-Feb-05 1:56
myousufq3-Feb-05 1:56 
GeneralDumb question about Mono C# Pin
FocusedWolf1-Feb-05 10:06
FocusedWolf1-Feb-05 10:06 
GeneralRe: Dumb question about Mono C# Pin
Judah Gabriel Himango1-Feb-05 10:13
sponsorJudah Gabriel Himango1-Feb-05 10:13 
GeneralRe: Dumb question about Mono C# Pin
FocusedWolf1-Feb-05 10:19
FocusedWolf1-Feb-05 10:19 
GeneralRe: Dumb question about Mono C# Pin
Heath Stewart1-Feb-05 10:27
protectorHeath Stewart1-Feb-05 10:27 
GeneralRe: Dumb question about Mono C# Pin
FocusedWolf1-Feb-05 10:57
FocusedWolf1-Feb-05 10:57 
GeneralRe: Dumb question about Mono C# Pin
Heath Stewart1-Feb-05 15:10
protectorHeath Stewart1-Feb-05 15:10 
Questionhow to communicate between an application and a windows service. Pin
just_starting1-Feb-05 10:04
just_starting1-Feb-05 10:04 
AnswerRe: how to communicate between an application and a windows service. Pin
Heath Stewart1-Feb-05 10:13
protectorHeath Stewart1-Feb-05 10:13 
GeneralAutomatic OK OnDialog Click Pin
DiMats1-Feb-05 9:34
DiMats1-Feb-05 9:34 
GeneralRe: Automatic OK OnDialog Click Pin
Heath Stewart1-Feb-05 9:50
protectorHeath Stewart1-Feb-05 9:50 
GeneralWintab32 library class in c sharp Pin
FAHADI19841-Feb-05 8:35
FAHADI19841-Feb-05 8:35 
GeneralRe: Wintab32 library class in c sharp Pin
Judah Gabriel Himango1-Feb-05 9:09
sponsorJudah Gabriel Himango1-Feb-05 9:09 
Generalforeach loop with controls Pin
Dwayner791-Feb-05 8:15
Dwayner791-Feb-05 8:15 
GeneralRe: foreach loop with controls Pin
S. Senthil Kumar1-Feb-05 8:27
S. Senthil Kumar1-Feb-05 8:27 

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.