Disappearing control

  • Thread starter Thread starter Corobori
  • Start date Start date
C

Corobori

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.

Anybody who saw that before ?

Any clue on how I should to make sure any control defined is dislayed
on the screen ?

Jean-Luc
www.corobori.com
 
Corobori said:
Hi,

Anybody who saw that before ?

Any clue on how I should to make sure any control defined is dislayed
on the screen ?

Jean-Luc
www.corobori.com

I've found that with .NET, and Windows programming in general that it is
sometimes a good idea to .Refresh() Windows after they are displayed...
 
This problems keeps annoying me. On a random basis I am coming accross
of forms where a control is just gone.

Is there a tool able to scan the controls defined in Private components
As System.ComponentModel.IContainer but not referenced in Private Sub
InitializeComponent()


Jean-Luc
www.corobori.com
 
Back
Top