Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.
Your profile
Tag cloud
.net .net 3.5 .net 4.0 2003 access modifiers beginners book buildup c# f# generate linq log4net microsoft reporting engine nhibernate nhprof nunit programming rdlc reflection reportviewer resharper rhino mocks structuremap template unit testing vb.net visual studio 2010 windows forms wpf
Authors
- chrissie1 (119)

- SQLDenis (17)

- Alex Ullrich (8)

- chaospandion (2)

- George Mastros (1)

- chopstik (1)

- tarwn (1)

- remou (1)

- More...
Main Categories
Search
Google Ads
Tags: windows forms
Of course I would never hit a beautiful, charming and intelligent man like myself but I sometimes think about it. Especially if I do stupid things like this.
No visual inheritance doesn’t work in Visual studio (whatever version). You need way to many trickery to get it to work. I’m working on a blogpost that says why VI doesn’t work but it is taking longer then excpected. There are so many things that don’t work.
One thing is the fact that if you inherit from a form that uses generics the designer just gives up and refuses to draw the form at designtime. It has no problem whatsever to display the form when at runtime. But still, if you have a mediumcomplex form it is not desirable to write the code manually.
...When you try to instantiate a windowsforms control in your NUnit test, you could get the following error:
System.Threading.ThreadStateException: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it.
This has something to do with the fact that windows forms controls like to run in STA (Single threaded apartment) and the latests version of Nunit run as MTA (Multi Threaded apartment).
After some googling (which only returned a small numbe...


LTD Social Sitings
Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.