Hi
I'm trying to use Rockford Lhotka's "Implementing a Background Process in Visual Basic .NET" in C#" http://msdn.microsoft.com/library/de...et09272002.asp.
I have added the Background project in my solution as a VB Project. My UI is in C#. When I try to compile it I get an error saying that "Keyword this is not available in the current context." The line that it errors on is this:
public class Form1 : System.Windows.Forms.Form, IClient
{
------> private Controller m_controller = new Controller(this);
where the constructor for Controller takes a reference to the Client Interface. My Form class inherits from the System.Windows.Forms.Form class and Implements the IClient interface. In VB.NET I do not get this error when I try the following line:
Public Class Form1
Inherits System.Windows.Forms.Form
Implements IClient
Private mController As New Controller(Me)
Can you please tell me how to get this to work in C#.
Thanks
Amit