UserControl and property

B

Brian Bugge

Is it possible to display properties of my usercontrol in the propertygrid
in vs.net

eg.

[System.ComponentModel.Browsable(true),System.ComponentModel.EditorBrowsable
(EditorBrowsableState.Always),DesignerSerializationVisibility(DesignerSerial
izationVisibility.Visible)]
public string Text{

get{

return this.mytextvar;

}

set{

this.mytextvar=value;

}

}

The above does not work, anyone who knows why ?

The only properties in the propertygrid is: EnableViewStae, Visible,
(Databindings), ID

(It is not a custom control, but a System.Web.UI.UserControl)

Brian Bugge - Denmark
 
T

Teemu Keiski

Hi,

this is limitation with user controls and is not supported in current VS.NET
versions. New Web Matrix and becoming VS.NET should bring design-time
support for user controls (at web form) and probably also the way to view
properties in Property Browser.

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist

Brian Bugge said:
Is it possible to display properties of my usercontrol in the propertygrid
in vs.net

eg.

[System.ComponentModel.Browsable(true),System.ComponentModel.EditorBrowsable(EditorBrowsableState.Always),DesignerSerializationVisibility(DesignerSerial
izationVisibility.Visible)]
public string Text{

get{

return this.mytextvar;

}

set{

this.mytextvar=value;

}

}

The above does not work, anyone who knows why ?

The only properties in the propertygrid is: EnableViewStae, Visible,
(Databindings), ID

(It is not a custom control, but a System.Web.UI.UserControl)

Brian Bugge - Denmark
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top