Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Custom control keeps disappearing in Visual Basic 2008

Posted on 2010-09-02
3
Medium Priority
?
303 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

971 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