Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Custom control keeps disappearing in Visual Basic 2008

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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

664 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