title: Unable to access Winforms control in a class
body: <p>I am currently working in a small windows forms project in C# using Visual studio 2008.
  I have added a custom class to the project, but in this class I am unable to access the forms controls (like listbox, textbox, buttons ) in order to programmatically change their properties.</p>
  
  <p>The class file has using system.windows.forms included and all files are in the same namespace.
  Surprisingly, I am also unable to access the controls in the form1 class itself, unless I create a method in the class and then intellisense pops up the names of the  various controls. </p>
  
  <p>in the custom class however, intellisense does not show the names of the controls at all. </p>
  
  <p>Appreciate if someone coudl shed some light on why this could be happening.</p>
  
  <p>Thanks</p>