473,387 Members | 1,897 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 controls...

I am using a class that I downloaded off the net (for a nullable date time
picker).
I've incorporated it into my program, and have been using it without
problems until recently.

Twice now, when I've built a release, all of the custom datetimepickers have
disappeared. The only code that remains is the inital declaration for them.

I have spent a lot of time trying to figure a way around having the
datetimepicker display today's date whenever the value from the database is
null, and thought I had found something that works...

Any ideas as to whether this could be something on my end? OR am I going to
have to scrap the downloaded code??
Has anyone heard of this happening before?

TIA,
Amber

Apr 4 '06 #1
1 1183
Amber,

You can check if the form designer generates code by looking for the
InitializeComponent() method. If the controls are not automatically
initialized by the form designer then try to initialize them in the form
constructor by initializing necessary properties and adding it to the form or
container control.

You can change their base class to System.Windows.Forms.DateTimePicker in
the variable declaration to the intrinsic control by doing a replace all in
files in the current project.

Let me know about the class library so I can investigate further.

"amber" wrote:
I am using a class that I downloaded off the net (for a nullable date time
picker).
I've incorporated it into my program, and have been using it without
problems until recently.

Twice now, when I've built a release, all of the custom datetimepickers have
disappeared. The only code that remains is the inital declaration for them.

I have spent a lot of time trying to figure a way around having the
datetimepicker display today's date whenever the value from the database is
null, and thought I had found something that works...

Any ideas as to whether this could be something on my end? OR am I going to
have to scrap the downloaded code??
Has anyone heard of this happening before?

TIA,
Amber

Apr 7 '06 #2

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...
4
by: Frank Rizzo | last post by:
Hello, I have a form that contains the Browser control (via interop, of course) among other things. The browser control is in a Panel control. When I add other controls (such as splitter and some...
2
by: Grant Merwitz | last post by:
I am using usercontrols to control the contant in my website. Currently, depending on a parameter passed in the querystring, the appropriate usercontrol will be loaded. i.e. private void...
7
by: Mike Bulava | last post by:
I have created a base form that I plan to use throughout my application let call the form form1. I have Built the project then add another form that inherits from form1, I add a few panel controls...
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...
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...
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...
1
by: JDeats | last post by:
I have many labels that are disappearing from my form when the user resizes it, they seem to dissapear when certain width/height thresholds are exceeded. I have no code in place purposely trying...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
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
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,...

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.