compilation error on groupbox

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
....
 
C

Crouchie1998

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
 
H

Herfried K. Wagner [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top