|
Hi,
I have got a weird problem. I have a project composed by about 70 forms. On a regular basis I found out that controls are gone from the UI ! When going to the Windows Form Designer with the code editor I can see its definition but the code used to display it on the form is gone.
Here is the form in add mode (no reference made to the control yet) with the control gone (a text edit thing)
http://www.corobori.com/sos/200531522815_CCBase22.jpg
Here is the form in edit mode (where a reference is made) http://www.corobori.com/sos/200531522922_CCBase23.jpg
The compile goes thru as the control is defined
'Required by the Windows Form Designer Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer 'It can be modified using the Windows Form Designer. 'Do not modify it using the code editor. Friend WithEvents lblSuspens As System.Windows.Forms.Label Friend WithEvents lblChampVide As System.Windows.Forms.Label Friend WithEvents Su_Texto As DevExpress.XtraEditors.TextEdit <--------------------------------
but I only notice it when running the application so it's difficult to spot.
This code
Me.Controls.Add(Me.Su_Texto) '<-- adds control to the forms control collection
(and any other reference to it) is gone
I contacted DevExpress and they haven't heard about this problem before. On UseNet they are several posts about it but none with a way around.
Anybody who saw that before ?
Any clue on how I should to make sure any control defined is dislayed on the screen ?
Is there a tool able to scan the controls defined in Private components As System.ComponentModel.IContainer but not referenced in Private Sub InitializeComponent() ?
|