Okay, I have been through this hell myself and generally in my app I can solve it in one of three ways. It took me a long time and a lot of patience to come up with these crazy ways of making the problem go away. And it comes back sometimes, but I just do my magic incantations and I'm good to go again.
Sometimes there is a circular reference problem. Sometimes I have mismatched references. It's called the return of DLL hell. My solution has a dll with the base form, then about 20+ other dlls that contain forms that inherit from that form. I also have a number of other projects in there that the dll's of the base and subclassed forms depend on (reference). Pattern #1 I have found that sometimes (and I don't know why but I've learned to accept it) the references to these other dlls get out of synch. There are two dlls that I reference directly in the bin of the main project (I have them all build into the main project's bin) and the rest I just reference the projects. The two that I reference directly are due to another issue that is not related to the UI stuff. So, if it's possible, remove all of the common references from both projects and then add them back in. Be sure to match the references. Pattern #2 Remove and then re-add the dll with the subclassed form into the solution. Rebuild. Pattern #3 Remove the reference to the dll with the base form. Re-add it back in. No guarantees but in my app solution, one of these always does the trick. Good luck -----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Franklin Gray Sent: Friday, July 28, 2006 4:37 PM To: [email protected] Subject: Re: [ADVANCED-DOTNET] VS2005 s#cks!!!!!!!!!!!!! tried that and it didn't work. It still wouldn't let me go into design mode. What I was doing worked in vs2003 just fine. Message from Shawn Hempel <[EMAIL PROTECTED]>@DISCUSS.DEVELOP.COM received on 07/28/2006 03:11 PM 07/28/2006 03:11 PM Shawn Hempel <[EMAIL PROTECTED]>@DISCUSS.DEVELOP.COM Please respond to "Discussion of advanced .NET topics." <[email protected]> Sent by "Discussion of advanced .NET topics." <[email protected]> To: [email protected] cc: Subject: Re: [ADVANCED-DOTNET] VS2005 s#cks!!!!!!!!!!!!! If I understand your issue correctly -- you don't /have/ to subscribe to inherited events like that. Microsoft recommends you just override the base class' event handlers. Very OOP friendly. :: http://msdn2.microsoft.com/en-us/library/system.windows.forms.control.onente r.aspx :: The *OnEnter* method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class. *Notes to Inheritors *When overriding *OnEnter* in a derived class, be sure to call the base class's *OnEnter* method so that registered delegates receive the event. Franklin Gray wrote: > Sorry all for my outburst. I've never had so much pain in going to the > next version before except when moving from COM to dotnet and that was > expected. At least then the IDE didn't have much problems. It really > buggs me that I have to put events into my base form that I inherit from > and catch the events in the inheriting form. Somewhere I think MS forgot > what inheritance is all about. > > Thanks for the links. > > > > > Message from Sébastien Lorion > <[EMAIL PROTECTED]>@DISCUSS.DEVELOP.COM received on 07/28/2006 > 01:55 PM > > 07/28/2006 01:55 PM > > > > Sébastien Lorion <[EMAIL PROTECTED]>@DISCUSS.DEVELOP.COM > > Please respond to "Discussion of advanced .NET topics." > <[email protected]> > Sent by "Discussion of advanced .NET topics." > <[email protected]> > > > > To: [email protected] > cc: > Subject: Re: [ADVANCED-DOTNET] VS2005 s#cks!!!!!!!!!!!!! > > Humm, consider yourself lucky to not have worked with VS 2005 BETA 2. > RTM is rock stable compared to it ! Btw, BETA 1 was mostly fine, so > wtf happened between ? > > Sébastien > > On 7/28/06, Frans Bouma <[EMAIL PROTECTED]> wrote: > >>> http://www.windowsforms.net/articles/debuggingwsod.aspx >>> >> White Screen of .... 'Darn' ??? :) haha :) >> >> To Franklin: yes it sucks. MS has released some patches, call >> > PSS for the patches. Yes that sucks even more, we all ask MS > >> year after year to release patches early, but that's not the case, >> > because if they'd do that the world would obvious come to an > >> end... </sarcasm> >> >> FB >> >> =================================== >> This list is hosted by DevelopMentor(r) http://www.develop.com >> >> View archives and manage your subscription(s) at http://discuss.develop.com >> >> > > > =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
