disappearing controls...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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.
 
Back
Top