Results 1 to 3 of 3

Thread: [2005] Trigger Form Events

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2007
    Posts
    31

    [2005] Trigger Form Events

    Dear all,

    How i can trigger the form events which is call from other forms(opened by showdialog) like the events load, button click etc.

    thanks

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

    Re: [2005] Trigger Form Events

    You don't artificially raise events. If you want something to happen then you call a method. If you want the same thing to happen when an event is raised then you call the same method from the event handler. An exception to that is the Click event of some controls, including the Button. You can call the PerformClick method of a Button and it will raise an actual Click event.
    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
    Junior Member
    Join Date
    Jul 2007
    Posts
    31

    Re: [2005] Trigger Form Events

    yes, your are right, i should use the method instead!, thanks very much.

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