Results 1 to 19 of 19

Thread: Invoking a Method with arguments? [Resolved]

Threaded View

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Invoking a Method with arguments? [Resolved]

    When calling InvokeMethod, one can simply do:

    VB Code:
    1. Dim p() As Object = {"your ugly mother", 0}
    2.         InvokeMethod(Me, "Button1_Click", p)


    Now, Button1_Click takes two arguments:

    sender of type System.Object,
    e of type System.EventArgs

    Which maps to where? Can someone explains what happens to "your ugly mother" and 0 when the Invoke method gets called?
    Last edited by mendhak; Nov 22nd, 2004 at 11:48 PM.

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