F
Fernando Cardoso
On my Windows Forms app I have a base form called DataEntryForm. On this
form I have a DataGridView and a BindingSource populated with a base
EntityCollection. These controls are protected friend.
I have a second form called EmployeesForm inherited from DataEntryForm. I
changed the datasource of the BindingSource to an EmployeesEntityCollection.
It worked fine and the public properties of my custom entity class appeared
on the DataGridView.
If I change any property on the EmployeesForm controls and save the form, it
seems that the code generator will make something wrong. When I close the
form and open it again, its displayed the following error message:
"Duplicate component name 'LastNameDataGridViewTextBoxColumn'. Component
names must be unique and case-insensitive.
E:\Sistemas\Talento\talento.framework\Código\Talento.Framework.Teste\Forms\frmEmployees.Designer.vb"
I saw the code on frmEmployees.Designer.vb and it creates only one
LastNameDataGridViewTextBoxColumn. Also from what I know, I have no control
on the designer generated code, unless I create a new designer and a
DataGridView derived class.
How can I avoid this problem?
Please send any answer to my e-mail too.
Thanks in advance.
Fernando
form I have a DataGridView and a BindingSource populated with a base
EntityCollection. These controls are protected friend.
I have a second form called EmployeesForm inherited from DataEntryForm. I
changed the datasource of the BindingSource to an EmployeesEntityCollection.
It worked fine and the public properties of my custom entity class appeared
on the DataGridView.
If I change any property on the EmployeesForm controls and save the form, it
seems that the code generator will make something wrong. When I close the
form and open it again, its displayed the following error message:
"Duplicate component name 'LastNameDataGridViewTextBoxColumn'. Component
names must be unique and case-insensitive.
E:\Sistemas\Talento\talento.framework\Código\Talento.Framework.Teste\Forms\frmEmployees.Designer.vb"
I saw the code on frmEmployees.Designer.vb and it creates only one
LastNameDataGridViewTextBoxColumn. Also from what I know, I have no control
on the designer generated code, unless I create a new designer and a
DataGridView derived class.
How can I avoid this problem?
Please send any answer to my e-mail too.
Thanks in advance.
Fernando