Solved

Custom control keeps disappearing in Visual Basic 2008

Posted on 2010-09-02
3
298 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

734 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