Results 1 to 3 of 3

Thread: [RESOLVED] [1.0/1.1] What's in C# as Handles in VB?

  1. #1

    Thread Starter
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    Resolved [RESOLVED] [1.0/1.1] What's in C# as Handles in VB?

    Hello,

    When we create a function or Sub, say Button1.Click, then at the end [Handles Button1.Click] is appended. So if I make a custom function or Sub and append the Handles Button1.Click at its end, clicking the button will call the function automatically.

    I could not remember how I implemented this thing in C#. Please could somebody tell me??

    Thank you.
    Show Appreciation. Rate Posts.

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: [1.0/1.1] What's in C# as Handles in VB?

    Button1.Click += New EventHandler(method_name);

  3. #3

    Thread Starter
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    Re: [1.0/1.1] What's in C# as Handles in VB?

    Thank you, and I even sorted out my problem.

    Thank you again.
    Show Appreciation. Rate Posts.

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