Link to home
Start Free TrialLog in
Avatar of AndreSteffens
AndreSteffens

asked on

member not found error and user control disappears

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??
Avatar of cookre
cookre
Flag of United States of America image

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.
Avatar of AndreSteffens
AndreSteffens

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of tovvenki
tovvenki

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks, one of these articles should provide the clue. I will be back later...
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.
(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...
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?