Results 1 to 3 of 3

Thread: [2005] Call procedure/whatever it's called

  1. #1

    Thread Starter
    Lively Member smart_phil_dude1's Avatar
    Join Date
    Jun 2005
    Location
    Behind You!
    Posts
    125

    [2005] Call procedure/whatever it's called

    i want my button to do a few things, and then call my WebBrowser1_DocumentCompleted()

    how can i do this?
    Please Help Us Save Ana or donate now by going to Oneana.com

    Visit my Website at http://www.therealfantasy.com

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Call procedure/whatever it's called

    You don't, or at least you definitely shouldn't, call WebBrowser1_DocumentCompleted. That's an event handler and is executed when the WebBrowser1.DocumentCompleted event is raised. Calling event handlers directly is very poor practice. If you have code that needs to be executed when the WebBrowser finishes loading a document and when a Button is clicked then put it in its own method and call that method from both the WebBrowser's DocumentCompleted event handler and the Button's Click event handler.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Lively Member smart_phil_dude1's Avatar
    Join Date
    Jun 2005
    Location
    Behind You!
    Posts
    125

    Re: [2005] Call procedure/whatever it's called

    holy crap thanks for correcting me, that's actually what i meant; i wanted to know how to have the DocumentCompleted to call an other event handler... :/
    Please Help Us Save Ana or donate now by going to Oneana.com

    Visit my Website at http://www.therealfantasy.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width