PC Review


Reply
Thread Tools Rate Thread

Disappearing control

 
 
Corobori
Guest
Posts: n/a
 
      16th Mar 2005
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

 
Reply With Quote
 
 
 
 
Mitchell Vincent
Guest
Posts: n/a
 
      16th Mar 2005
Corobori wrote:
> 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...



--
- Mitchell Vincent
- kBilling - Invoices Made Easy!
- http://www.k-billing.com
 
Reply With Quote
 
Corobori
Guest
Posts: n/a
 
      16th Mar 2005
But when the code "Me.Controls.Add(Me.Su_Texto)" is gone it won't
help. I reckon it's some VS.NET IDE problem

Jean-Luc
www.corobori.com

 
Reply With Quote
 
Corobori
Guest
Posts: n/a
 
      19th Mar 2005
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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disappearing volume control... Lu Powell Windows XP Basics 2 31st Oct 2006 02:25 PM
disappearing control =?Utf-8?B?aXdkdTE1?= Microsoft VB .NET 2 28th Oct 2006 05:47 AM
disappearing control tips Karen C via AccessMonster.com Microsoft Access Form Coding 0 28th Jul 2005 07:55 PM
Re: User Control scrollbar and Top of control disappearing Cor Ligthert Microsoft VB .NET 1 1st Sep 2004 07:11 PM
Re: User control autoscroll, top of control disappearing Cor Ligthert Microsoft Dot NET 0 1st Sep 2004 02:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:18 AM.