vb@rchiv
VB Classic
VB.NET
ADO.NET
VBA
C#
sevAniGif - als kostenlose Vollversion auf unserer vb@rchiv CD Vol.5  
 vb@rchiv Quick-Search: Suche startenErweiterte Suche starten   Impressum  | Datenschutz  | vb@rchiv CD Vol.6  | Shop Copyright ©2000-2026
 
zurück

 Sie sind aktuell nicht angemeldet.Funktionen: Einloggen  |  Neu registrieren  |  Suchen

VB.NET - Fortgeschrittene
Re: Microsoft Knowledge Base Article - 311284 
Autor: Dartrax
Datum: 20.05.04 11:28

 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As _
   System.EventArgs) Handles Button1.Click
        ' Variablen des DOM und des INPUT
        Dim doc As mshtml.HTMLDocument = CType(AxWebBrowser1.Document, _
          mshtml.HTMLDocument)
        Dim Input As mshtml.HTMLInputTextElement = CType( _
        doc.getElementsByTagName("INPUT").item(0), mshtml.HTMLInputTextElement)
        ' Teste Inputvariable...
        If Input.name <> "Mein Input" Then MsgBox("Input-Variable falsch...")
 
        ' Events des WebBrowsers
        Dim icpc As UCOMIConnectionPointContainer = CType(doc, _
          UCOMIConnectionPointContainer)
        Dim g As New Guid("3050F613-98B5-11CF-BB82-00AA00BDCE0B")
 
        icpc.FindConnectionPoint(g, icp)
        icp.Advise(Me, cookie)
 
 
        ' Events des Inputelementes
        Dim icpc2 As UCOMIConnectionPointContainer = CType(Input, _
          UCOMIConnectionPointContainer)
        Dim g2 As New Guid("3050F613-98B5-11CF-BB82-00AA00BDCE0B")
 
        icpc2.FindConnectionPoint(g2, icp2)
        icp2.Advise(Me, cookie2)
    End Sub
 
#Region " Browser Events "
 
    Public Sub onactivate(ByVal pEvtObj As mshtml.IHTMLEventObj) Implements _
      mshtml.HTMLDocumentEvents2.onactivate
    End Sub
    Public Sub onafterupdate(ByVal pEvtObj As mshtml.IHTMLEventObj) Implements _
      mshtml.HTMLDocumentEvents2.onafterupdate
    End Sub
    Public Function onbeforeactivate(ByVal pEvtObj As mshtml.IHTMLEventObj) As _
      Boolean Implements mshtml.HTMLDocumentEvents2.onbeforeactivate
        Return True
    End Function
    Public Function onbeforedeactivate(ByVal pEvtObj As mshtml.IHTMLEventObj) _
      As Boolean Implements mshtml.HTMLDocumentEvents2.onbeforedeactivate
        Return True
    End Function
    Public Sub onbeforeeditfocus(ByVal pEvtObj As mshtml.IHTMLEventObj) _
      Implements mshtml.HTMLDocumentEvents2.onbeforeeditfocus
    End Sub
    Public Function onbeforeupdate(ByVal pEvtObj As mshtml.IHTMLEventObj) As _
      Boolean Implements mshtml.HTMLDocumentEvents2.onbeforeupdate
        Return True
    End Function
    Public Sub oncellchange(ByVal pEvtObj As mshtml.IHTMLEventObj) Implements _
      mshtml.HTMLDocumentEvents2.oncellchange
    End Sub
    Public Overridable Overloads Function onclick(ByVal pEvtObj As _
      mshtml.IHTMLEventObj) As Boolean Implements _
      mshtml.HTMLDocumentEvents2.onclick
        ListBox1.Items.Insert(0, "onClick: " & _
        pEvtObj.srcElement.tagName.ToString())
        Return True
    End Function
    Public Function oncontextmenu(ByVal pEvtObj As mshtml.IHTMLEventObj) As _
      Boolean Implements mshtml.HTMLDocumentEvents2.oncontextmenu
        Return True
    End Function
    Public Function oncontrolselect(ByVal pEvtObj As mshtml.IHTMLEventObj) As _
      Boolean Implements mshtml.HTMLDocumentEvents2.oncontrolselect
        Return True
    End Function
    Public Sub ondataavailable(ByVal pEvtObj As mshtml.IHTMLEventObj) _
      Implements mshtml.HTMLDocumentEvents2.ondataavailable
    End Sub
    Public Sub ondatasetchanged(ByVal pEvtObj As mshtml.IHTMLEventObj) _
      Implements mshtml.HTMLDocumentEvents2.ondatasetchanged
    End Sub
    Public Sub ondatasetcomplete(ByVal pEvtObj As mshtml.IHTMLEventObj) _
      Implements mshtml.HTMLDocumentEvents2.ondatasetcomplete
    End Sub
    Public Function ondblclick(ByVal pEvtObj As mshtml.IHTMLEventObj) As _
      Boolean Implements mshtml.HTMLDocumentEvents2.ondblclick
        Return True
    End Function
    Public Overloads Sub ondeactivate(ByVal pEvtObj As mshtml.IHTMLEventObj) _
      Implements mshtml.HTMLDocumentEvents2.ondeactivate
    End Sub
    Public Function ondragstart(ByVal pEvtObj As mshtml.IHTMLEventObj) As _
      Boolean Implements mshtml.HTMLDocumentEvents2.ondragstart
        Return True
    End Function
    Public Function onerrorupdate(ByVal pEvtObj As mshtml.IHTMLEventObj) As _
      Boolean Implements mshtml.HTMLDocumentEvents2.onerrorupdate
        Return True
    End Function
    Public Sub onfocusin(ByVal pEvtObj As mshtml.IHTMLEventObj) Implements _
      mshtml.HTMLDocumentEvents2.onfocusin
    End Sub
    Public Sub onfocusout(ByVal pEvtObj As mshtml.IHTMLEventObj) Implements _
      mshtml.HTMLDocumentEvents2.onfocusout
    End Sub
    Public Function onhelp(ByVal pEvtObj As mshtml.IHTMLEventObj) As Boolean _
      Implements mshtml.HTMLDocumentEvents2.onhelp
        Return True
    End Function
    Public Overloads Sub onkeydown(ByVal pEvtObj As mshtml.IHTMLEventObj) _
      Implements mshtml.HTMLDocumentEvents2.onkeydown
    End Sub
    Public Overloads Function onkeypress(ByVal pEvtObj As mshtml.IHTMLEventObj) _
      As Boolean Implements mshtml.HTMLDocumentEvents2.onkeypress
        Return True
    End Function
    Public Overloads Sub onkeyup(ByVal pEvtObj As mshtml.IHTMLEventObj) _
      Implements mshtml.HTMLDocumentEvents2.onkeyup
    End Sub
    Public Overloads Sub onmousedown(ByVal pEvtObj As mshtml.IHTMLEventObj) _
      Implements mshtml.HTMLDocumentEvents2.onmousedown
    End Sub
...und wieder im nächten weiter...

Dartrax

Meine Homepage: www.dartrax.de


Posting wie es leibt und lebt
. . . und voll daneben geht!
alle Nachrichten anzeigenGesamtübersicht  |  Zum Thema  |  Suchen

 ThemaViews  AutorDatum
Microsoft Knowledge Base Article - 3112842.832Dartrax16.05.04 17:31
Antwort von Microsoft - Wer hilft mir damit 2.524Dartrax17.05.04 15:59
Teil 22.227Dartrax17.05.04 16:00
Re: Microsoft Knowledge Base Article - 3112842.064ModeratorDaveS17.05.04 16:22
Re: Microsoft Knowledge Base Article - 3112842.064Dartrax17.05.04 17:21
Re: Microsoft Knowledge Base Article - 3112842.067ModeratorDaveS17.05.04 17:33
Re: Microsoft Knowledge Base Article - 3112841.974Dartrax17.05.04 17:40
Re: Microsoft Knowledge Base Article - 3112842.107ModeratorDaveS17.05.04 19:39
Re: Microsoft Knowledge Base Article - 3112842.039Dartrax18.05.04 16:12
Re: Microsoft Knowledge Base Article - 3112842.132ModeratorDaveS18.05.04 23:24
Re: Microsoft Knowledge Base Article - 3112842.146Dartrax20.05.04 11:25
Re: Microsoft Knowledge Base Article - 3112842.223Dartrax20.05.04 11:28
Re: Microsoft Knowledge Base Article - 3112842.395Dartrax20.05.04 11:32
Re: Microsoft Knowledge Base Article - 3112842.248Dartrax20.05.04 11:33
Re: Microsoft Knowledge Base Article - 3112842.427Dartrax20.05.04 11:35
ICH GLAUB'S NICHT!!! ICH HABS!!!2.082Dartrax20.05.04 12:17
Re: ICH GLAUB'S NICHT!!! ICH HABS!!!2.055ModeratorDaveS20.05.04 12:52
Und hier nochmal die Microsoft-Erlärung:2.241Dartrax20.05.04 14:05
Re: Microsoft Knowledge Base Article - 311284 mit korrekter ...2.213Dartrax20.05.04 14:09
Re: Microsoft Knowledge Base Article - 311284 mit korrekter ...1.995ModeratorDaveS20.05.04 14:49
Re: Microsoft Knowledge Base Article - 311284 mit korrekter ...2.020Dartrax20.05.04 15:04
Re: Microsoft Knowledge Base Article - 311284 mit korrekter ...1.937ModeratorDaveS20.05.04 16:12
Re: Microsoft Knowledge Base Article - 311284 mit korrekter ...1.991ModeratorDaveS20.05.04 16:13
Re: Microsoft Knowledge Base Article - 311284 mit korrekter ...2.027Dartrax20.05.04 18:38

Sie sind nicht angemeldet!
Um auf diesen Beitrag zu antworten oder neue Beiträge schreiben zu können, müssen Sie sich zunächst anmelden.

Einloggen  |  Neu registrieren

Funktionen:  Zum Thema  |  GesamtübersichtSuchen 

nach obenzurück
 
   

Copyright ©2000-2026 vb@rchiv Dieter Otter
Alle Rechte vorbehalten.
Microsoft, Windows und Visual Basic sind entweder eingetragene Marken oder Marken der Microsoft Corporation in den USA und/oder anderen Ländern. Weitere auf dieser Homepage aufgeführten Produkt- und Firmennamen können geschützte Marken ihrer jeweiligen Inhaber sein.

Diese Seiten wurden optimiert für eine Bildschirmauflösung von mind. 1280x1024 Pixel