Results 1 to 4 of 4

Thread: Events, another C# conversion question...

Threaded View

  1. #1

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    Resolved Events, another C# conversion question...

    I've come across this in some code that I am converting to VB...

    Code:
    private static readonly object DockStateChangedEvent = new object();
    public event EventHandler DockStateChanged
    {
    	add	{	Events.AddHandler(DockStateChangedEvent, value);	}
    	remove	{	Events.RemoveHandler(DockStateChangedEvent, value);	}
    }
    Anyone want to give me a clue as to what it should look like after its converted? Its like a maze, you start from the cheese and work your way back to the mouse.

    Last edited by crptcblade; Oct 15th, 2004 at 02:48 PM.
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

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