Results 1 to 4 of 4

Thread: raiseEvent

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2009
    Posts
    135

    raiseEvent

    hello,

    i would like to ask if how to work with raiseEvent..

    i want to call btnCheck_click() event from Class A to Class B...how will i handle this..?..any help will greatly appreciated..

    thanks in advance..
    glen

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

    Re: raiseEvent

    Can you give us a clearer picture of exactly what's happening? I assume that Class A and Class B are both forms, correct? What's there relationship? Does one create the other? At what point do you want to invoke this button click? Is it when one of the forms closes? Is it displayed by calling Show or ShowDialog?

    As you can hopefully tell, for us to confidently provide you with a solution we need a FULL and CLEAR description of what you're trying to achieve.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2009
    Posts
    135

    Re: raiseEvent

    yes,a have 2 forms.

    from form1,i want to call an event located at form2..how will i handle this..am i going to use raiseEvent here? or not needed..

    tnx..

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,344

    Re: raiseEvent

    You don't call events. Events are raised, which causes event handlers to be invoked. Which form creates the other? I'm guessing that form1 displays form2 and then you want to update form1 when something happens on form2. Is that correct? If so, what do you want to do on form1 and what is happening on form2. When I said we need a full and clear description I was suggesting that you provide that full and clear description.

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