Results 1 to 2 of 2

Thread: VB.Net to C# (Pauser of jm)

  1. #1

    Thread Starter
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,123

    Exclamation VB.Net to C# (Pauser of jm)

    I am trying to convert the following code of jmcilhinney:

    http://www.vbforums.com/showthread.p...ighlight=pause

    I'm stucked on the line

    Code:
    info.context.Post(AddressOf Execute, info)
    I tried converting it to

    Code:
    info.context.Post(Execute, info);
    but it complains of

    Cannot use 'Execute' as an argument to a dynamically dispatched operation because it is a method group. Did you intend to invoke the method?
    Anybody?

    TIA
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

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

    Re: VB.Net to C# (Pauser of jm)

    That Post method expects a SendOrPostCallback delegate as an argument so you may have to do this:
    Code:
    info.context.Post(new SendOrPostCallback(Execute), info);

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