compilation error on groupbox

  • Thread starter Thread starter TJS
  • Start date Start date
T

TJS

I get this error at time of compiling my class code
what's missing ??

=================== error =============================

Me.groupBox1 = New GroupBox
~~~~~~~~~~~~~
C:\Documents and Settings\...\Builder.vb(89) : error BC30002: Type
'GroupBox' is not defined.
====================================================
I have the following imports

Imports System
Imports System.ComponentModel
Imports System.Configuration
Imports System.Diagnostics
Imports System.Drawing
Imports System.Windows.Forms
Imports System.ComponentModel.Design


Private groupBox1 As GroupBox
....
 
Why can't you just say?

Dim grpBox as New GroupBox

or

in your class are you inheriting a Groupbox? Example:

Public Class1

Inherits GroupBox etc.

End Class

Crouchie1998
BA (HONS) MCP MCSE
 
TJS said:
I get this error at time of compiling my class code
what's missing ??

=================== error =============================

Me.groupBox1 = New GroupBox
~~~~~~~~~~~~~
C:\Documents and Settings\...\Builder.vb(89) : error BC30002: Type
'GroupBox' is not defined.
====================================================
I have the following imports

Imports System
Imports System.ComponentModel
Imports System.Configuration
Imports System.Diagnostics
Imports System.Drawing
Imports System.Windows.Forms
Imports System.ComponentModel.Design


Private groupBox1 As GroupBox


Make sure you include a reference to "System.Windows.Forms.dll" when
compiling.
 
Back
Top