This project has moved. For the latest updates, please go here.

How do I declare the generic Control class?

Apr 11, 2012 at 10:17 AM

How do I dim the Control type?


Dim ctl As control
Error 30 Type 'control' is not defined. 


Dim ctl As System.windows.forms.control
Error 30 Type 'System.windows.forms.control' is not defined. 

Coordinator
Apr 11, 2012 at 10:40 AM

Import the System.Windows.Forms namespace.
add the reference to your project. "System.Windows.Forms"

Sebastian 

Apr 11, 2012 at 11:16 AM

Ah, the add reference is what I had missed.

Thank you!