473,748 Members | 2,320 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

UserControl Designer problems

Hi!

We create an inherited user control and add it to a form. When we
successfully compile the project and switch to the designer of the form
again, the control disappears and we get 2 error messages in the task list:

There is already a component named 'dataGridContro l1'. Components must
have unique names, and names must be case-insensitive. A name also cannot
conflict with the name of any component in an inherited class.

and

C:\FUSION\0.2\S ource\Finance\s kFinanceUI\User RoleForm.cs(365 ): The variable
'dataGridContro l1' is either undeclared or was never assigned.

Even if we change the name of the control before compiling the project, the
problem persists. So the name of the control cannot be the reason. We also
checked this out on different forms.
Does anyone know a solution?

TIA,

Markus
Nov 16 '05 #1
5 3295
Hi Markus,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you've got 2 error messages in the task
list after you have built the control sucessfully. If there is any
misunderstandin g, please feel free to let me know.

This problem seems to be a little strange and requires further debugging.
To resolve the problem faster, could you please send me a package that
would reproduce the problem by email? Remove 'online' from the no spam
alias is my email address.

If anything is unclear, please feel free to reply to the post.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 16 '05 #2
Hi Kevin,

Thank you for your help. Unfortunately there seems to be a little
misunderstandin g regarding the problem.

The problem is not the control itself but the use of it on a form. The
task-messages are related to the form. The control can be built without any
problems. It even is shown as expected at runtime, but the designer reports
the errors mentioned in our first posting. Note that the designer removes
the line containing Form.Controls.A dd( sillyControl ).

We found a similar case using Google, but unfortunately the poster did not
get a resolution. Anyway, you may have a look at it:
http://groups.google.de/groups?hl=de...0microsoft.com

Unfortunately we were not able to reproduce the behavior in a small sample.
It seems to somehow be related to our project, that is too large to be
submitted.

Thanks again for your assistance,

Markus

"Kevin Yu [MSFT]" <v-****@online.mic rosoft.com> schrieb im Newsbeitrag
news:hX******** ******@cpmsftng xa10.phx.gbl...
Hi Markus,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you've got 2 error messages in the task list after you have built the control sucessfully. If there is any
misunderstandin g, please feel free to let me know.

This problem seems to be a little strange and requires further debugging.
To resolve the problem faster, could you please send me a package that
would reproduce the problem by email? Remove 'online' from the no spam
alias is my email address.

If anything is unclear, please feel free to reply to the post.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 16 '05 #3
Hi Markus,

Thanks for your reply.

From your description, I understood this is a design-time issue, the error
message comes up when you open the designer view of a Form which have this
user control.

I suspect these error message is generated when designer trying to
de-serialize the usercontrol, to further investigate on this issue, a
simple reproduction project would be a great help.

Since it's not able to reproduce this problem in a small sample, I'd like
to first analyze the stack trace information when the internal exception
throws. You may enable caching the first-chance exception in VS.IDE
debugger paste the stack trace information.
Note, in order to get correct and complete stack trace inforamtion you you
need load all the related symbols.

Here are the steps to enable first-chance exception in VS.NET IDE:
1.Open the Exceptions dialog, tell VS.NET break into the debugger when an
CLR exception happens, you may open the dialog by "Debug"->"Exception"
command.
select the "Common Language Runtime Exceptions" and select "Break into the
debugger".
2.run your program in release build, when exception happens, a dialog will
appear with message such as "A first chance exception of type....",
please write down the exception type name, then choose break. You may get a
warning says no source code, it's ok, click ok to close it.

For how to Load Symbol files in VS.NET IDE, you may referr to the KB
article below:
<HOW TO: Use a Symbol Server with the Visual Studio .NET Debugger>
http://support.microsoft.com/?id=319037

If you make an progress on this issue or meet problem when trying my
suggestions please feel free to reply this thread to let me know.

Thanks!

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Community Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, please remove the word "online"
before sending mail.

Nov 16 '05 #4
Hi Markus,

We have reviewed this issue and are currently contacting the product team.
We will update you ASAP. Thanks for your patience!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 16 '05 #5
Hi Markus,

Thank you for your patience!

Based on my research, this issue is similar to what KB article Q842706
describes. You can try to call Microsoft PSS for a hotfix on it. For more
information, please check the following link:

http://support.microsoft.com/?kbid=842706

If that still cannot have the problem resolved, feel free to let me know.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 16 '05 #6

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

Similar topics

4
9379
by: james | last post by:
I cannot get my UserControl's browsable properties to show up in the designer properties panel. I have then public virtual bool TestProp { {get return testProp; } set { testProp = value; } } but it doesn't show up in the designer. By the way, this used to work in the 2002 version, now in 2003 I am getting all kinds of problems like this
1
4025
by: Rhy Mednick | last post by:
I'm creating a custom control (inherited from UserControl) that is displayed by other controls on the form. I would like for the control to disappear when the user clicks outside my control the same way a menu does. To do this my control needs to get notified when the user tried to click off of it. The Leave and LostFocus events of the UserControl work most of the time but not always. For example, if they click on a part of the form...
2
8311
by: Jaikumar | last post by:
Hi, 1) I have created one windows application, In the main form ( form1) i have added one usercontrol (usercontrol1), In that user control i am drawing one image. 2) In the UserControl1 i am showing one transparent form (form3) when ever user preseed left mouse button. 3) The form3 has one transparent user control (usercontrol2) that paints circles. That measn the circles will show on top the usercontrol1 image. 4) The form3 border style...
2
2670
by: bill yeager | last post by:
When trying to run my web project, I get the following error: Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: The base class includes the
2
3121
by: Benedict Teoh | last post by:
I created a dropdownlist containing day, month and year field and expose a property to assign a date. When I call from a aspx page and assign the value, the new date is not displayed until a submit is performed. How do I force the usercontrol to display the newly assigned date? I don't have this problem if I place the two dropdownlist and the year field directly on the aspx page.
0
2469
by: Matthew | last post by:
All, I have searched google and the newsgroups but can't find anything the same as what I am experiencing (though I may have missed something). I have controls (textboxes) within UserControls which are not behaving as I would expect. Specifically, if there is a command button external to the usercontrol which is activated by a shortcut key (eg Alt-B), the command button Click event handler code 'executes' even though the textbox set...
0
2438
by: Gary Shell | last post by:
I am experiencing some strange behavior between a UserControl's validating event and a treeview control. Initially, I thought it was related to an issue in the Knowledgebase article 810852 (http://support.microsoft.com/kb/810852), but then I realized that the hotfix mentioned was in .Net v1.1, which I am using. I took the sample from that article and recreated the situation I see in my application. (Code included below.) If you run the...
5
1519
by: Pieter | last post by:
Hi, I'm getting a really terrible and anoying bug/problem in VS.NET 2005: 1. Create a new Windows Application. 2. Add a new class Class1. 3. Add a usercontrol UserControl1. 4. Add a public instance of Class1 to UserControl1 (with WithEvents): "Public WithEvents ThisClass As New Class1". 5. Build the Solution, and put an instance of UserControl1 on Form1.
1
12081
by: TheSteph | last post by:
Hi ! I would like to create a UserControl that act as a « Collapsible Panel ». So I have a UserControl with two panels : a "Header panel" at the top, and a "Container Area Panel" docked to fill the remaining client area of the
6
1944
by: Johnny Jörgensen | last post by:
I've got a usercontrol derived from a normal ComboBox that contains some special formatting code. On my main form I've got a lot of my custom comboboxes. I discovered a bug in the derived control and fixed it. But it still doesn't work for the controls already added to the form. It works fine for new instances of the control dragged from the toolbox to the form. I don't want to have to drag and drop new controls to exchange all my old...
0
8983
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8822
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9528
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9359
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9310
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6072
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3298
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 we have to send another system
3
2206
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.