Solved

member not found error and user control disappears

Posted on 2004-08-19
9
267 Views
Last Modified: 2010-05-18
I have made a user control containing a text box with modified behavior It is contained in a groupbox. Without any warning (after compiling correctly the previous time) I get a 'member not found' warning in the task list of VS.Net 2003 and the user control disappears from the form designer. But the code related to it is still present in the form's code!
What is causing this bug??
0
Comment
Question by:AndreSteffens
  • 5
9 Comments
 
LVL 22

Expert Comment

by:cookre
ID: 11848590
Sounds like something that happened to me.  I never did find out what caused it.  Whenever it happend, I just created a new project and copied everything over.
0
 
LVL 4

Author Comment

by:AndreSteffens
ID: 11849329
I am afraid I already did that: I made a new form, Selected all Controls, copied and pasted, copied all user made code, hooked up the events again.... no luck. Since my Usercontrol only consisted of one textbox, I subclassed a textbox proper and copied the methods and properties from myUserControl.TextBox to mySubclassedTextBox... same result
0
 
LVL 21

Accepted Solution

by:
tovvenki earned 500 total points
ID: 11850142
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 4

Author Comment

by:AndreSteffens
ID: 11852166
Thanks, one of these articles should provide the clue. I will be back later...
0
 
LVL 4

Author Comment

by:AndreSteffens
ID: 11859952
Hmmm,

This one hell of a slippery bug... I checked and doublechecked for constructor Exceptions and they aren't there. I moved the project containing the UserControl outside the solution in which the form is present, but the bug persists. The only workaround is to open the form designer as little as possible, because as soon as I open it the UserControl disappears. I am currently awaiting the patch from Microsoft.
0
 
LVL 4

Author Comment

by:AndreSteffens
ID: 11878952
(emerging from between broken doors through slamming them shut, and peering through the cracked surface of my smashed in monitor)
This bug is ...inconvenient. None of the suggestions work, the micrsoft hotfix least of all. On another form the Control does not give any problems. But on my main GUI on which the Control resides inside a groupbox it disappears every time the designer is opened with the message: 'member not found'. I suppose the bug is located in the groupbox then and I will move the UserControl out of it. I am going to test this for a few more days before giving out points...
0
 
LVL 4

Author Comment

by:AndreSteffens
ID: 12097440
Whoa time flies :-)

I am still testing and I would like to comment some further. Moreover towenki does deserve some credit for the useful links he provided.
Hope I didn't upset anyone too overly much?
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

759 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

19 Experts available now in Live!

Get 1:1 Help Now