Re: How do i use a static class' property at design time

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



OK, it works now, maybe it just needed to be run once

"TS" <manofsteele1@xxxxxxxxxxxxx> wrote in message
news:%23c1KWmZvHHA.536@xxxxxxxxxxxxxxxxxxxxxxx
i have created an enum as a property; of the textbox but I don't have
designer support for it.

also, what do you mean "sets the resource id"

"bruce barker" <nospam@xxxxxxxxxx> wrote in message
news:%23maK32PvHHA.4348@xxxxxxxxxxxxxxxxxxxxxxx
in your textbox make a enum property that sets the resource id. then the
designer will support it.

-- bruce (sqlwork.com)

TS wrote:
i want to store my regular expressions in a static class with public
constants. I want to be able to pass a regular expression's id in a
property
of a custom textbox so that in aspx page i could just set the
expressionId
property and be done with it. i am trying to write as little code in
code
behind as possible.

if this scenario, since i can't just use a singleproperty
"ClassName.PropertyName" since c# doesnt' have a stand alone Eval
statement,
i could also have a property: regExClass that would default to a
particular
one, which would be used to instantiate the class and then use the
expressionID property to access the correct property to set the reg
ex.

does anyone have a better solution.

thanks






.