View Single Post
  #4 (permalink)  
Old 06-24-2009, 2:54 PM
JohnH's Avatar
JohnH JohnH is offline
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Dec 2005
Location: Norway
Age: 37
Posts: 10,318
Reputation: 1315
JohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond repute
Default

I see, you have to use the 'Add Reference' dialog to add the assembly that has the class you want, documentation for the standard web controls say they are in assembly System.Web. For example for the TextBox class you can see this:
Quote:
Originally Posted by help
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
When you have added the reference you can use the class, either import the namespace or qualify the type like this:
Code:
Me.PropertyGrid1.SelectedObject = New System.Web.UI.WebControls.TextBox
__________________
Reply With Quote