|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
compilation error on groupboxwhat'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 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 > ... > >
Show quote
Hide quote
"TJS" <nospam@here.com> schrieb: Make sure you include a reference to "System.Windows.Forms.dll" when >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 compiling. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> 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/> |
|||||||||||||||||||||||