I'm trying to create a new Class Library for a custom control. The base code is as follows:
Imports System.ComponentModel
Public Class DynamicCheckedListBox
Inherits System.w...
End Class
When I try to type System.Windows.CheckedListBox, Intellisense shows no entry for Windows.
The list displayed includes "WeakReference", "XML", but no Windows option.
In my other projects, this works fine.
Yesterday I had a similar problem wherein System.Windows was acceptable, but there was no
entry for CheckedListBox. Somehow along the way, it showed up on the list, as I tried creating
a new project.
Help! What's going on

Class Library can't access System.Windows
Krishna Tangriala
Intellisense for ALL. Duh.
Thanks VERY much!
Christian Nordbakk
You will need to add a reference in your project to System.Windows.Forms.dll
As you’ve noticed, you do not need to do this with regular WinForms apps, the reason being that the Form itself as well as all of the visual controls are contained within System.Windows.Forms.dll and in a Class Library or Console Application they are generally not needed, but if they are you have to add it yourself.
Also, after you've added the reference you will find that System.Windows.CheckedListBox does not exist, instead, use System.Windows.Forms.CheckedListBox.
Nico1947
Mr Parker
BUT CheckedListBox is not an option in that namespace. There is "Button", "CheckBox",
and "ColorDialog", but no CheckedListBox.
Any suggestions
Jules Decontieur
namlow
ControlCollection, IntegerCollection, etc.
Further thoughts (please)
Robin Davies