473,503 Members | 1,691 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why am I suddently getting an error message when I rebuild my appl

Hi, I just added a new form with Crystl report viewer but one of my other
form suddently starts giving me an error message when I rebuild the code.
The error is complainig about the class name. Can someone tell me how to
correct this?
Thanks, Alpha

C:\Progs\VMS\MaintDued.cs(14): The namespace 'VMS' already contains a
definition for 'MaintDued'


namespace VMS
{
/// <summary>
/// Summary description for MaintDued.
/// </summary>
public class MaintDued : System.Windows.Forms.Form
{
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.DateTimePicker dtpLastService;
private System.Windows.Forms.TextBox txtLastOdometer;
private System.Windows.Forms.DataGrid dgMaintDued;
private System.Windows.Forms.Button btnCancel;
private System.Windows.Forms.Button btnOK;
private System.Windows.Forms.MainMenu mainM
Nov 17 '05 #1
2 1386
Did you copy and past the form to create this new form?

"Alpha" <Al***@discussions.microsoft.com> wrote in message
news:41**********************************@microsof t.com...
Hi, I just added a new form with Crystl report viewer but one of my other
form suddently starts giving me an error message when I rebuild the code.
The error is complainig about the class name. Can someone tell me how to
correct this?
Thanks, Alpha

C:\Progs\VMS\MaintDued.cs(14): The namespace 'VMS' already contains a
definition for 'MaintDued'


namespace VMS
{
/// <summary>
/// Summary description for MaintDued.
/// </summary>
public class MaintDued : System.Windows.Forms.Form
{
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.DateTimePicker dtpLastService;
private System.Windows.Forms.TextBox txtLastOdometer;
private System.Windows.Forms.DataGrid dgMaintDued;
private System.Windows.Forms.Button btnCancel;
private System.Windows.Forms.Button btnOK;
private System.Windows.Forms.MainMenu mainM

Nov 17 '05 #2
No I didn't. But I did find my problem. I created a dataset using the same
name as one of my form module. I've corrected it and the problem is solved.
Thank you for the response.

Alpha

"Vinni" wrote:
Did you copy and past the form to create this new form?

"Alpha" <Al***@discussions.microsoft.com> wrote in message
news:41**********************************@microsof t.com...
Hi, I just added a new form with Crystl report viewer but one of my other
form suddently starts giving me an error message when I rebuild the code.
The error is complainig about the class name. Can someone tell me how to
correct this?
Thanks, Alpha

C:\Progs\VMS\MaintDued.cs(14): The namespace 'VMS' already contains a
definition for 'MaintDued'


namespace VMS
{
/// <summary>
/// Summary description for MaintDued.
/// </summary>
public class MaintDued : System.Windows.Forms.Form
{
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.DateTimePicker dtpLastService;
private System.Windows.Forms.TextBox txtLastOdometer;
private System.Windows.Forms.DataGrid dgMaintDued;
private System.Windows.Forms.Button btnCancel;
private System.Windows.Forms.Button btnOK;
private System.Windows.Forms.MainMenu mainM


Nov 17 '05 #3

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

Similar topics

0
278
by: Pola | last post by:
Please Help I am using VC++ in win 2000 In my appl (Win32 project) I want to control the close operation of the apl (for example if somebody will try to close appl from the "Windows Task Manager")...
5
5482
by: Udy | last post by:
Hi, We have a custom application used by a customer on DB2 8.1.5 AIX 5.1, we have tested it with 8.1.0 AIX 5.1 and everything works fine. But with 8.1.5 we get the above error. The other...
4
3173
by: hb | last post by:
Hi, I have been working on the ASP.Net project for months with VS.Net 2003 in C#. But this afternoon I suddenly got the following error when I tied to compile the whole solution: === ------...
8
1785
by: Charles | last post by:
I do not understand why I am getting a "Specified cast is not valid" error, since it has worked before. Something has changed and I am not really sure what it could be. I am looking for something...
4
5401
by: james margey | last post by:
Hi to all, I have spent 3 days at this error and i have two days to go for a deadline, and i am about to go off my nut, the reason being: Microsoft dont seem to be able to provide a solution, I...
7
1229
by: Andy Lim | last post by:
hi all, one of my asp.net appl was once runs smoothly. then the hosting i use move the server to somewhere else. after the move, the same appl returns runtime error. but without any clue what...
2
1265
by: JensT | last post by:
Hi I have used the isquerytable function mentioned elsewhere for a few of my databases. And there has never been a problem - but suddently the code stops at: test = db.TableDefs(TName).Name ...
1
20194
by: LiveCycle | last post by:
Hi, I've got a longstanding project that's been working fine for about a year. I was working on one of the pages, a simple download page. After making a little tweak on the page, I tried to...
4
5683
by: imaloner | last post by:
I am posting two threads because I have two different problems, but both have the same background information. Common Background Information: I am trying to rebuild code for a working,...
0
7202
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
7084
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
7278
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7328
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...
1
6991
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...
1
5013
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.