SourceCode erläutern

  • Allgemein

Es gibt 1 Antwort in diesem Thema. Der letzte Beitrag () ist von Chrisber.

    SourceCode erläutern

    Hallo kann mir jemand den Source erläutern also alle Befehle und Funktionen !

    VB.NET-Quellcode

    1. Option Explicit
    2. Private Sub cmdFill_Click()
    3. With wbrWebBrowser
    4. .Document.Forms(0).feld1.Value = txtName.Text 'Das ist sozusagen die "Verlinkung" mit den TextBoxen , oder ?
    5. .Document.Forms(0).feld2.Value = txtTime.Text
    6. .Document.Forms(0).feld3.Value = txtDate.Text
    7. .Document.Forms(0).textfeld.Value = lblText.Caption
    8. End With
    9. End Sub
    10. Private Sub cmdSend_Click()
    11. wbrWebBrowser.Document.Forms(0).submit.Click
    12. End Sub
    13. Private Sub Form_Load() '
    14. wbrWebBrowser.Navigate App.Path & "\form.htm"
    15. txtName.Text = "Anonymus"
    16. txtTime.Text = Time
    17. txtDate.Text = Date
    Pushs sind wenn überhaupt erst nach 24 Stunden erlaubt, dennoch...
    Im Webbrowser wird ein Formular aufgerufen, dieses wird automatisch mit den Inhalten aus txtName, txtTime, txtDate ausgefüllt und danach abgeschickt.
    Die Webseite wird diese Daten dann irgenwie weiterverarbeiten ;)

    ~ Chris
    To make foobar2000 a real random music player, I figured out the only way to achieve this is to use Windows Media Player.

    At some point in time, you recognize that knowing more does not necessarily make you more happy.