properties

C

Calvin X

How do i get my public properties on a webcontrol to show up on the designer so I can set them on the page they are residing without having to set them via code?

I have tried the following:

using System.ComponentModel;

......

[Category("Appearance"), DefaultValue("nothing important")
public string BLAH
{ get{} set{} }

but they just dont show up, am i missing something?

Thanks

Calvin X
 
D

Darren Kopp

Calvin,

You should be able to access that property from the Properties Panel in the Designer. make sure that your get and set functions are getting and setting values, not just leaving them empty there. Also you may want to change the category to something a bit easier to go through like ControlProperties or something. It might be showing up under appearance, and you just overlooked it.

HTH.

Darren Kopp
http://blog.secudocs.com


How do i get my public properties on a webcontrol to show up on the designer so I can set them on the page they are residing without having to set them via code?

I have tried the following:

using System.ComponentModel;

.....

[Category("Appearance"), DefaultValue("nothing important")
public string BLAH
{ get{} set{} }

but they just dont show up, am i missing something?

Thanks

Calvin X
 
C

Calvin X

They are not showing up though. Do i need to add them to the toolboc first and drag them from there? They are in my project does this make a difference.
Calvin,

You should be able to access that property from the Properties Panel in the Designer. make sure that your get and set functions are getting and setting values, not just leaving them empty there. Also you may want to change the category to something a bit easier to go through like ControlProperties or something. It might be showing up under appearance, and you just overlooked it.

HTH.

Darren Kopp
http://blog.secudocs.com


How do i get my public properties on a webcontrol to show up on the designer so I can set them on the page they are residing without having to set them via code?

I have tried the following:

using System.ComponentModel;

.....

[Category("Appearance"), DefaultValue("nothing important")
public string BLAH
{ get{} set{} }

but they just dont show up, am i missing something?

Thanks

Calvin X
 

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

Forum statistics

Threads
474,263
Messages
2,571,064
Members
48,769
Latest member
Clifft

Latest Threads

Top