Home All Groups Group Topic Archive Search About

compilation error on groupbox

Author
27 Jun 2005 11:12 AM
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
....

Author
27 Jun 2005 5:16 PM
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

Show quoteHide quote
"TJS" <nospam@here.com> wrote in message
news:%23oTyrkweFHA.3328@TK2MSFTNGP09.phx.gbl...
> 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
> ...
>
>
Author
27 Jun 2005 8:46 PM
TJS
I have "Inherits Form"
Author
27 Jun 2005 6:26 PM
Herfried K. Wagner [MVP]
Show quote Hide quote
"TJS" <nospam@here.com> schrieb:
>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.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
27 Jun 2005 8:45 PM
TJS
yes I have that in my bat file


Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:OsjM$W0eFHA.2520@TK2MSFTNGP09.phx.gbl...
> "TJS" <nospam@here.com> schrieb:
>>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.
>
> --
> M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
> V B   <URL:http://classicvb.org/petition/>