all groups > asp.net building controls > april 2004 >
You're in the

asp.net building controls

group:

User defined property saving problem



User defined property saving problem Alexandru Gurau via .NET 247
4/27/2004 5:44:54 AM
asp.net building controls: (Type your message here)
Hi,

I have a problem with a control (C#) found on the web wich=
implement a masked text box (derived from TextBox) in a dll=
file=2E It has a property 'Masked' implemented as an enum that=
alows you to select the mask you want (none, date, phone, digit,=
decimal etc=2E) Everything works fine, I added the control into=
toolbox, and I used on a windows form=2E I can set the masked=
property at design time, build the application and works fine,=
but when I save and close the project and reopen it in design=
mode the value I set for Masked property is gone and in the=
designer window I get a warning: 'The variable 'Mask' is either=
undeclared or was never assigned'=2E The default value (none) is=
now selected=2E
There is a mechanisme that must be implemented to save the=
property between sessions that I am not aware of?

Thanks,

Alex
--------------------------------
From: Alexandru Gurau

-----------------------
Posted by a user from =2ENET 247 (http://www=2Edotnet247=2Ecom/)

Re: User defined property saving problem Victor Garcia Aprea [MVP]
4/27/2004 9:47:44 PM
Is this a winform control or a webcontrol? Note that this ng is for building
web (asp.net) controls...

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx

To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
[quoted text, click to view]
(Type your message here)
Hi,

I have a problem with a control (C#) found on the web wich implement a
masked text box (derived from TextBox) in a dll file. It has a property
'Masked' implemented as an enum that alows you to select the mask you want
(none, date, phone, digit, decimal etc.) Everything works fine, I added the
control into toolbox, and I used on a windows form. I can set the masked
property at design time, build the application and works fine, but when I
save and close the project and reopen it in design mode the value I set for
Masked property is gone and in the designer window I get a warning: 'The
variable 'Mask' is either undeclared or was never assigned'. The default
value (none) is now selected.
There is a mechanisme that must be implemented to save the property between
sessions that I am not aware of?

Thanks,

Alex
--------------------------------
From: Alexandru Gurau

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>AG+/uJiC30+qUrfqbzImJQ==</Id>

AddThis Social Bookmark Button