There's a built in limit to the number of window handles windows will give you. It's supposed to be in a per application basis, but there's some oddness in there. Google around with various keywords, there's some information/discussion you can find.
Also, to play around with this a while back I made a little handle tester. You're welcome to play around with it if you like, but use at your own risk :)
http://members.shaw.ca/gtexmo/Code/C.../HandleTester/
(This is the code so you can see how things were handled, and how my program recovers from the error generated by hitting that control limit. Yea, it really feels like a hack, but it does the job. It was the only way I could find to recover... just trying to clear the panel controls would throw the exception again. I had to null the entire panel and regenerate, which felt really cumbersome.)
To resolve the issue, you have two options...
1) Handle the problem in a different way. You can either draw only the controls you could possibly see on the screen at any given time and then manually deal with scrolling, or you can change your data presentation entirely. I've seen a few suggestions on breaking the data up into categories, then displaying each category as requested. Caching helps with recall and can bump off unused categories to make room for new controls when they need to be allocated.
2) There is a registry entry you can use (again, search google) to bump up the number of window handles Windows will let you use. I'm not exactly sure on the details and I think it's still capped in some way, but it will let you exceed that 10k limit.
Personally, I'd say #1 is a better way to go even though it requires more work. I guess it depends on your deployment and if you can have access to this registry setting on your client machines. Also, ten thousand controls is a lot to process at any one time, breaking it down might increase the usability of your program. Of course, it is
a lot easier to just change the registry setting.
Whatever works best for you :)
(Again though, I highly recommend doing some googling. This issue has quite a bit of information on it.)