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

R

Rich

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
 
D

dbgrick

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
 
R

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
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

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

Rich said:
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,
 
R

Rich

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
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

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
Rich said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top