473,387 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Disappearing control

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

Nov 21 '05 #1
4 1167
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
Nov 21 '05 #2
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

Nov 21 '05 #3
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

Nov 21 '05 #4
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

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: neptune | last post by:
I built a form to access a query with a 2 field primary key. It should use 2 controls to find the unique record and display the other field values on the form. In the criteria section of the...
4
by: Steve | last post by:
Hi All, I've seen many postings regarding different situations where controls disappear but have never seen a decent solution. Here is the problem. I have a form onto which I am placing some...
2
by: Rachel Suddeth | last post by:
Here is my scenario: I have a few custom controls that I set up on a form and tested setting properties and appearances. Then I added a couple references to the project which add classes I need to...
2
by: timm.wong | last post by:
Hi, I have a form where i have a thread working in the background that tests a connection to a server. If the connection is not successful,then I want it to display 2 buttons on the form. I...
6
by: Winshent | last post by:
I have read many threads which indicate that this was a problem with version 2002. Why should i be suffering this? I am using VB.NET 2003 Standard Edition... is it still a problem with 2003? ...
6
by: George Yefchak | last post by:
Hi folks, What's the latest news on the "disappearing controls" issue? I've seen a few posts over the last several months indicating that other people have the same problem, but I've seen...
1
by: NWdotnet | last post by:
Haven't been able to get to the root this odd problem. Perhaps someone here can suggest something that will get me on the right trail? Its probably the same issue Alex reported in 2003 but had no...
4
by: c676228 | last post by:
Hi all, the data disappearing problem occurs to all my controls even my regualr web control like asp:textbox, when I click back button in web browser from second page to first page and then click...
4
by: Kevin | last post by:
I'm using an ActiveX Listbox control in my Windows Forms program. I can load the listbox and have it work fine on one of my forms. But when I add the line: Me.MDIParent = frmMain the form...
1
by: joostnews | last post by:
How can I prevent my tooltips from disappearing?? Problems I am having: - display-time should be much bigger so that people can take some time to read them. - I've also noticed that the tooltip...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.