473,399 Members | 4,192 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,399 software developers and data experts.

User controls disappear from form

I have created some user controls which they inherit from TextBox, ComboBox e.t.c. They seem to work fine but sometimes when I open the project and load the form containing them (or maybe when I change the dll with my controls), then my controls are vanished but actually they are not deleted. When I check the code file (*.cs) I notice that the code has not changed at all, but I can not see my controls on the design form and during runtime. Does anyone know what I have to do?

Thanks in advance.

Jul 21 '05 #1
1 1518
Hi,

I to Suffe from this issue. The Decleration of the cotrol dosnot dissapear
but the inisialitaion of the control does. Which gives you pleanty of
Object Reference not set to an Instance of an object Messages.

We have been trying to resolve this for ages. Is your user control in the
same project as the Form in which it is placed?

If not then the only thing we have found that seems to prevent the
dissapearence to Rebuild the solutition as soon as you load it and the to
rebuid regurarly as you go. We belive that it is to do with the reference
being "lost" or "Locked".

Hope this Helps
P.S IF anyone knows how to Fix this then let me know also.

"Peter Manesis" wrote:
I have created some user controls which they inherit from TextBox, ComboBox e.t.c. They seem to work fine but sometimes when I open the project and load the form containing them (or maybe when I change the dll with my controls), then my controls are vanished but actually they are not deleted. When I check the code file (*.cs) I notice that the code has not changed at all, but I can not see my controls on the design form and during runtime. Does anyone know what I have to do?

Thanks in advance.

Jul 21 '05 #2

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

Similar topics

5
by: Henke | last post by:
I added a project to my solution that contains a user control. Now I 'd like to add the user control from that project to a form in my solution. The problem is that the control doesn't gets added...
0
by: Peter Manesis | last post by:
I have created some user controls which they inherit from TextBox, ComboBox e.t.c. They seem to work fine but sometimes when I open the project and load the form containing them (or maybe when I...
1
by: Rhy Mednick | last post by:
I'm creating a custom control (inherited from UserControl) that is displayed by other controls on the form. I would like for the control to disappear when the user clicks outside my control the...
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...
10
by: BBM | last post by:
Hi, I have been developing with C# User Controls and occasionally have a problem where I "lose" a control from the design surface of the User Control. The controls that I am using to build my...
2
by: Suzanne | last post by:
Hi all, I'm reposting this message as I'm experiencing this problem more and more frequently : I really hope someone out there can help me as I've been tearing my hair out on this one for a...
9
by: Charles Law | last post by:
I have a form on which user controls are placed at runtime. When a control is added to the form a handler is added for an event that a high-level object raises, which must be handled by the new...
8
by: Aaron Smith | last post by:
I have a problem... Have a form, made some changes.. now all the controls are gone. I didn't make any changes to the designer generated region.. I'm not really sure what happened to them, but this...
1
by: Peter Manesis | last post by:
I have created some user controls which they inherit from TextBox, ComboBox e.t.c. They seem to work fine but sometimes when I open the project and load the form containing them (or maybe when I...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.