Solved

Custom control keeps disappearing in Visual Basic 2008

Posted on 2010-09-02
3
289 Views
Last Modified: 2013-11-27
Hello,
I have a custom control that I use for a date-picker on several VB.NET windows forms. The control has a button on it, that pops the calendar up when the user clicks it. (I'm using framework 3.5, VS2008)

Daily, I go into Visual Studio 2008 to modify and test the forms and every day, at least one form is missing the "buttons" on the custom control. (It looks like a textbox without the button, though the properties clearly says it's my customized control.)

Sometimes the control comes back correctly if I add a new one (customized) for the form, or press F4/properties... or go out of the project and back in. There seems to be no consistency in getting the control to show back up on the forms. (Sometimes it'll work on one form but not another...)

I would appreciate any help on this. I'm dealing with this every day... sometimes the same forms, sometimes different ones. The inconsistency makes it hard to find a fix.

Help! (and Thanks!)
Mary Z
0
Comment
Question by:mz64
  • 2
3 Comments
 
LVL 38

Expert Comment

by:puppydogbuddy
ID: 33595753
Have a look at this link and see if it helps:
             http://www.vbforums.com/showthread.php?p=3567669
0
 

Accepted Solution

by:
mz64 earned 0 total points
ID: 33741380
I don't know that my question is completely answered. But I have some work-arounds for this. I don't believe it is a coding problem.

Just today I had the issue come up. In the VS 2008 the control appeared to be gone, but when I ran the project, it found the custom control, which then showed up on the forms: no more errors or disappearing controls.

I'm closing this as I seem to be able to work with it now. Thanks!
0
 
LVL 38

Expert Comment

by:puppydogbuddy
ID: 33769114
For the record, I believe the cause of the problem is still the NullReferenceException error that I alluded to in my original post.  This error appears whenever there is an unhandled exception, and it can manifest itself several different ways.  Here are some more references:
http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/c023cd11-def4-4fde-a95a-7d8d496ce904

http://www.eggheadcafe.com/community/aspnet/7/10149170/error-message-nullreferenceexception.aspx

http://stackoverflow.com/questions/1489094/cssfriendly-nullreferenceexception
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now