Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / November 2007

Tip: Looking for answers? Try searching our database.

The type or namespace name 'Browsable' does not exist in the class or     namespace 'System.ComponentModel'

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rich - 28 Nov 2007 14:35 GMT
I am getting this error:

"The type or namespace name 'Browsable' does not exist in the class or
namespace 'System.ComponentModel' (are you missing an assembly
reference?)"

When I am trying to build my Pocket PC application.  The class that is
throwing this error is the .cs class that is generated by the data set
generator tool on this line :

[System.ComponentModel.Browsable(false)]

I'm not sure why it would be failing sine the code is generated.

I am using VS .NET 2003 and Windows Vista.

Any help would be greatly appreciated.

Thank you,

Rich
dbgrick - 28 Nov 2007 15:21 GMT
The Browsable attribute is a desktop designer attribute and does not exist in
the Compact Framework.  You need to remove this from the code and add it to
you designer xml file.  You can have visual studios do this for you by right
clicking on the file in the solution explorer and selecting the View Class
Diagram link.  In the class on the designer,  Click on the property and in
the Properties page, select
the ... button in the Custom Attributes property.  Then just add
Browsable(false) to the list.  This will place the property in the xml file
and allow you to compile the control library.

I hope this helps.
Regards,
Rick D.
Contractor

> I am getting this error:
>
[quoted text clipped - 17 lines]
>
> Rich
Rich - 29 Nov 2007 17:24 GMT
I couldn't find the 'View Class Diagram' link.  Here is some more info
that I just found out today.  I am editing XSD files that are
representing my data.  They work fine and I get no errors until I try
to add some more data to the XSD (3 int fields).  I am adding the new
fields in the design view.   I just started updating it to handle some
new data.  It seems when I try to change the data in the XSD files I
get that error.  If I leave them alone they work fine.  Is there a
certain way that I am suspose to add new data to the file?

Thank you,

Rich

On Nov 28, 12:21 pm, dbgrick <dbgr...@discussions.microsoft.com>
wrote:
> The Browsable attribute is a desktop designer attribute and does not exist in
> the Compact Framework.  You need to remove this from the code and add it to
[quoted text clipped - 32 lines]
>
> > Rich
Rich - 29 Nov 2007 17:35 GMT
Also, the error is coming from the generated 'myXMLFile.cs'  I have 3
seprate XSD files.  The only time I get a CS file generating is when I
add in the new data.  The file is not getting created for the other 2.

Rich

> I couldn't find the 'View Class Diagram' link.  Here is some more info
> that I just found out today.  I am editing XSD files that are
[quoted text clipped - 48 lines]
>
> > > Rich

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.