473,479 Members | 2,060 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 1519
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
1993
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
1338
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
4001
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
2591
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
2680
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
2562
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
20100
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
10069
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
397
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
6903
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
7027
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
7071
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...
1
6726
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...
1
4763
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...
0
2974
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1291
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
557
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
170
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.