Solved

member not found error and user control disappears

Posted on 2004-08-19
9
268 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
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.

 
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

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

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

863 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

23 Experts available now in Live!

Get 1:1 Help Now