473,396 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

compilation error on groupbox

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
....
Nov 21 '05 #1
4 1526
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" <no****@here.com> wrote in message
news:%2****************@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
...

Nov 21 '05 #2
"TJS" <no****@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/>

Nov 21 '05 #3
TJS
yes I have that in my bat file
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:Os**************@TK2MSFTNGP09.phx.gbl...
"TJS" <no****@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/>

Nov 21 '05 #4
TJS
I have "Inherits Form"
Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mark Johnson | last post by:
Sometimes Controls that have been added to a GroupBox do not show up. What I am doing : 1) I am not using the designer, but create all the Controls per hand: groupBoxProdukt_01 = new...
0
by: Renee | last post by:
Hi there, does any one know how to create context sensitive help for Groupbox control with HelpProvider class? I can create context sensitive help for any control easily except for Groupbox. ...
1
by: MikeY | last post by:
I'm trying to find a way for changing the thickness of the groupbox borders. I've searched on this site but can't seem to find anything of this subject. Does anyone have a suggestion. Thanks in...
5
by: Minfu Lu | last post by:
There are no public events such as mouse down, mouse move and mouse up for GroupBox in C#. It is possible to move a GroupBox programmably inC#? Thanks Minfu
12
by: ML | last post by:
I am trying to test a vb.net app in VirtualPC on a Win98 install. The app runs but I get "Generic GDI+" errors on any form with a groupbox. Does anyone know what this issue is or how to fix it? ...
8
by: johnmmcparland | last post by:
Hi all, my program is trying to add group boxes with radio buttons at run time. While at one point it was able to draw the group boxes without the radio buttons, now it encounters problems just...
3
by: Ali Chambers | last post by:
Hi, I have created a listbox called "dtlist1" on my VB.NET form. I call a procedure as follows: Private Sub openfile(flname As String) dtlist1.Items.Clear() etc..
1
by: Don | last post by:
I'm getting the following exception displayed in the task list at design time for my project: "Code generation for property 'Controls' failed. Error was: 'Object reference not set to an...
8
by: Steve | last post by:
Hi All Is there a way to change the colour of a Groupbox border in VB.net 2005 I want to change it to white Can it be done in the onpaint event? Regards Steve
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.