This project has moved and is read-only. 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
Error 30 Type '' is not defined. 

Apr 11, 2012 at 10:40 AM

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


Apr 11, 2012 at 11:16 AM

Ah, the add reference is what I had missed.

Thank you!