Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 20th, 2003, 08:34 AM
Registered User
 
Join Date: Jul 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problems with Inherited Forms in VC#

Hi,

When we use Inherited forms in Visual C#, is there any restriction that we can't change the position of inherited controls in the derived form ?

Because once I do it, the Visual Studio IDE starts giving me en error like -- "An error occured while loading the document. Fix the error, and then try loading the document again. The error message follows: Duplicate declaration of member Location".

Please help me with this.

Thanks and Regards,
Manoj.

 
Old July 22nd, 2003, 01:44 AM
Authorized User
 
Join Date: May 2003
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Your problem is multiple declaration of any control
one derived from the base form class and another that you have declared in the derived form class. Make sure that the name of controls you are putting on your derived form do not clash with those of base form.
Write back if there is anything else you want to ask.

Quote:
quote:Originally posted by mmwaikar
 Hi,

When we use Inherited forms in Visual C#, is there any restriction that we can't change the position of inherited controls in the derived form ?

Because once I do it, the Visual Studio IDE starts giving me en error like -- "An error occured while loading the document. Fix the error, and then try loading the document again. The error message follows: Duplicate declaration of member Location".

Please help me with this.

Thanks and Regards,
Manoj.

Deepesh Jain
VB,VBA & .NET Specialist
Wiley Support Team
 
Old July 20th, 2005, 10:01 AM
Registered User
 
Join Date: Jul 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have a similar problem.

I have created a simple user control with a button and a label.

When I add the control to my Windows form, I get the message
about Location and then my user control moves from its desired position to location (0,0).

What is happening here. There are no duplicate object names between my user control or windows form.

Any help would be highly appreciated.
Thanks,
JG








Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with MDI Forms danielkelly C# 4 December 22nd, 2008 11:39 PM
Validating Forms Problems encohen Access 2 July 3rd, 2006 07:30 AM
VC++ .NET 2003 Windows Forms Designer Problem alphatrak General .NET 0 February 15th, 2006 08:44 PM
Handling Events on Inherited Forms phil_kenney VB.NET 2002/2003 Basics 0 January 18th, 2005 11:34 AM
Help! problems with functions and forms Toka1 Javascript How-To 6 December 16th, 2003 11:15 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.