When I design my forms i.e. frmKOL.vb in VS for a VB project, I can include a List Viewer.
I add some columns and colum headers; I can edit this nicely using the olumn header collection editor
I can give a name to each column header and I can assign some text
lets say my column heade is named "KNR" and my column header text is "Knr."
When I exit the editor I go and have a look at the frmKOL.designer.vb
There I can find that column header objects are created
I can find the following sequence
Me.livZEI.Columns.AddRange(New System.Windows.Forms.ColumnHeader() {Me.KNR, Me.TNR, Me.KTEXT, Me.FELD, Me.FLDBRT, Me.KOLFMT, Me.KOLTYP, Me.KOLSUM, Me.KOLGEW, Me.FLDABS, Me.KOLABS, Me.KOLZEI, Me.UT})
and I can find below that
'
'KNR
'
Me.KNR.Name = "KNR"
Me.KNR.Text = "KNr."
'
'TNR
'
Me.TNR.Name = "TNR"
Me.TNR.Text = "TNr."
'
'KTEXT
'
Me.KTEXT.Name = "TEXT"
Me.KTEXT.Text = "Text"
Me.KTEXT.Width = 160
'
'FELD
'
The thing that bothers me is that Me.KNR.Name = "KNR" was missing; I have added the Name to each header but the code generator fails to add it to frmKOL.designer.vb
How can I fix or extend this Microsoft Visual Studio code generator? OR is this problem known and fixed with VS 2010?
Sepp