Designer won't let me look at two forms' design view

G

Guest

Designer won't let me look at two forms' design view

I submitted this to the 2005 newsgroups. There have been 86 views but no
answers so I hope you folks can help me.

I successfully rebuilt a windowsforms application(from beta2 to vs2005
final). However, whenever I try to look at either of two forms - design view
- NameAdd or WordAdd, the designer pops up.

In glaring admonishing oversized letters it tells me

One or more errors encountered while loading the designer. The errors are
listed below. Some errors can be fixed by rebuilding your project, while
others may require code changes.

The name Column1 is already in use by another component

at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object
component, Object value)
at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager
manager, CodeAssignStatement statement)
at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)

OK,fine, I expected that there would be a few incompatibilities between
beta2 and the final product. I'm perfectly willing to correct them.

Actually, it's not only column1, but column2 and column3, according to the
code analysis. It even tells me at what line in the designer the problem is
at.

So I duly rebuild successfully. Doesn't help. I open NameAdd.vb and
WordAdd.vb ,click cntl+F, look for column1 and find nothing.

The designer, however, won't let me look at its code.

How do I resolve this problem.

dennist685

I successfully rebuilt a windowsforms application. However, whenever I try
to look at either of two forms - design view - NameAdd or WordAdd, the
designer pops up.

In glaring admonishing oversized letters it tells me

One or more errors encountered while loading the designer. The errors are
listed below. Some errors can be fixed by rebuilding your project, while
others may require code changes.

The name Column1 is already in use by another component

at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object
component, Object value)
at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager
manager, CodeAssignStatement statement)
at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)

OK,fine, I expected that there would be a few incompatibilities between
beta2 and the final product. I'm perfectly willing to correct them.

Actually, it's not only column1, but column2 and column3, according to the
code analysis. It even tells me at what line in the designer the problem is
at.

So I duly rebuild successfully. Doesn't help. I open NameAdd.vb and
WordAdd.vb ,click cntl+F, look for column1 and find nothing.

The designer, however, won't let me look at its code.

How do I resolve this problem.

dennist685

I successfully rebuilt a windowsforms application. However, whenever I try
to look at either of two forms - design view - NameAdd or WordAdd, the
designer pops up.

In glaring admonishing oversized letters it tells me

One or more errors encountered while loading the designer. The errors are
listed below. Some errors can be fixed by rebuilding your project, while
others may require code changes.

The name Column1 is already in use by another component

at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object
component, Object value)
at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager
manager, CodeAssignStatement statement)
at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)

OK,fine, I expected that there would be a few incompatibilities between
beta2 and the final product. I'm perfectly willing to correct them.

Actually, it's not only column1, but column2 and column3, according to the
code analysis. It even tells me at what line in the designer the problem is
at.

So I duly rebuild successfully. Doesn't help. I open NameAdd.vb and
WordAdd.vb ,click cntl+F, look for column1 and find nothing.

The designer, however, won't let me look at its code.

How do I resolve this problem.

dennist685

I successfully rebuilt a windowsforms application. However, whenever I try
to look at either of two forms - design view - NameAdd or WordAdd, the
designer pops up.

In glaring admonishing oversized letters it tells me

One or more errors encountered while loading the designer. The errors are
listed below. Some errors can be fixed by rebuilding your project, while
others may require code changes.

The name Column1 is already in use by another component

at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object
component, Object value)
at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager
manager, CodeAssignStatement statement)
at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)

OK,fine, I expected that there would be a few incompatibilities between
beta2 and the final product. I'm perfectly willing to correct them.

Actually, it's not only column1, but column2 and column3, according to the
code analysis. It even tells me at what line in the designer the problem is
at.

So I duly rebuild successfully. Doesn't help. I open NameAdd.vb and
WordAdd.vb ,click cntl+F, look for column1 and find nothing.

The designer, however, won't let me look at its code.

How do I resolve this problem.

dennist685
 
J

Jeffrey Tan[MSFT]

Hi dennist685,

Thanks for your post.

Sorry but you did not provide enough problem context information for your
issue, currently with your post, it is hard for us to get the root cause.
Can you provide a little sample project to demonstrate this problem? Then
we can understand it better.

In code file, many code snippets are collapsed, so it can not be found
through Ctrl+F, we must expand all the code node in the code then to find
the problematic statement. Also, can you use the line number provided by
the designer error message to find the error statement in code file? This
should be much informative and easy to find.

I will wait for your further feedback. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
G

Guest

Thanks Jeffrey,

I wonder if I still have the right address in outlook express. In any case
it'll take a couple of days. Thank you very much for your offer.

dennist685
 
C

Chris Dunaway

dennist685 said:
The designer, however, won't let me look at its code.

Does it give you an error when you try? Have you clicked the "Show All
Files" button at the top of the solution explorer? You should then be
able to look at the designer generated code.
 
J

Jeffrey Tan[MSFT]

Hi dennist685,

Is your problem resolved? If you have any concern, please feel free to tell
me, thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
G

Guest

Jeffrey, not yet. I haven't produced the sample application yet. I'm first
going to answer the next reply. Please tell me if that helps you. If not,
I'll produce the sample application

dennist685
 
G

Guest

I can look at the designer generated code. Not only am I hesitant to mess
with with, I wouldn't know how to correct it. The problem is I have many
components with the same name. Why does vs studio object only when they're
the same in nameadd and wordadd?

Here's the relevant portion of the designer code.
Unfortunately, I can't caputre the line numbers.

Warning 1 The name Column1 is already in use by another
component. C:\vs2005Projects\Hasbara\Hasbara\NameAdd.Designer.vb 349 0
Warning 2 The name Column2 is already in use by another
component. C:\vs2005Projects\Hasbara\Hasbara\NameAdd.Designer.vb 356 0
Warning 65 The name Column3 is already in use by another
component. C:\vs2005Projects\Hasbara\Hasbara\NameAdd.Designer.vb 363 0

'DataGridViewTextBoxColumn1
'
Me.DataGridViewTextBoxColumn1.HeaderText = "KSID"
Me.DataGridViewTextBoxColumn1.Name = "Column1"
Me.DataGridViewTextBoxColumn1.ReadOnly = True
Me.DataGridViewTextBoxColumn1.Width = 50
'
'DataGridViewTextBoxColumn2
'
Me.DataGridViewTextBoxColumn2.HeaderText = "Keyword"
Me.DataGridViewTextBoxColumn2.Name = "Column2"
Me.DataGridViewTextBoxColumn2.ReadOnly = True
Me.DataGridViewTextBoxColumn2.Width = 200

'DataGridViewCheckBoxColumn1
'
Me.DataGridViewCheckBoxColumn1.HeaderText = "Active"
Me.DataGridViewCheckBoxColumn1.Name = "Column3"
Me.DataGridViewCheckBoxColumn1.ReadOnly = True
Me.DataGridViewCheckBoxColumn1.Width = 40

349 = Me.DataGridViewTextBoxColumn1.ReadOnly = True
356 = Me.DataGridViewTextBoxColumn2.ReadOnly = True
363 = Me.DataGridViewCheckBoxColumn1.ReadOnly = True

Notice in the third case it's column three, while its checkboxcolumn1, I
don't know if that's any significance.

Now I have the exact same code in wordadd. The difference between the two
is nameadd does extra processing to get lastname + firstname, prefix, middle
and suffix.

Hope this helps.

Jeffrey, do you still need a sample application?

dennist685
 
J

Jeffrey Tan[MSFT]

Hi dennist685,

Sorry for the late response.

I do not think I understand your problem reply very well. Yes, I think a
little sample project is helpful to understand this issue. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top