Ask a Question related to ASP.NET Building Controls, Design and Development.
-
Alexandru Gurau via .NET 247 #1
User defined property saving problem
(Type your message here)
Hi,
I have a problem with a control (C#) found on the web wichimplement a masked text box (derived from TextBox) in a dllfile. It has a property 'Masked' implemented as an enum thatalows you to select the mask you want (none, date, phone, digit,decimal etc.) Everything works fine, I added the control intotoolbox, and I used on a windows form. I can set the maskedproperty at design time, build the application and works fine,but when I save and close the project and reopen it in designmode the value I set for Masked property is gone and in thedesigner window I get a warning: 'The variable 'Mask' is eitherundeclared or was never assigned'. The default value (none) isnow selected.
There is a mechanisme that must be implemented to save theproperty between sessions that I am not aware of?
Thanks,
Alex
--------------------------------
From: Alexandru Gurau
-----------------------
Posted by a user from .NET 247 ([url]http://www.dotnet247.com/[/url])
<Id>AG+/uJiC30+qUrfqbzImJQ==</Id>
Alexandru Gurau via .NET 247 Guest
-
Using User Defined Data Type Across
hi! i have created a document class. I have a .net client application and a web service. Both of them using same object model and referencing a... -
User Control Public Property Problem
I have built a user control that displays the header on a web forms. It has a public property ("Msg") that I can set to display error messages from... -
[PHP] user-defined superglobals?
you can define your own superglobals by defining the vars first then accessing them thru the $GLOBALS var. example: <?php // file1.php $var1... -
User-defined class coercion?
Hi, In message "User-defined class coercion?" on 03/08/06, "Mark J. Reed" <markjreed@mail.com> writes: |I would like to define my own class... -
user defined cursor from a sp
Arun replies: Take a look at the following stored procedure: USE pubs IF EXISTS (SELECT name FROM sysobjects WHERE name = 'titles_cursor' and... -
Victor Garcia Aprea [MVP] #2
Re: User defined property saving problem
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:
[url]http://obies.com/vga/blog.aspx[/url]
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
"Alexandru Gurau via .NET 247" <anonymous@dotnet247.com> wrote in message
news:%23mYrxVFLEHA.3664@TK2MSFTNGP10.phx.gbl...
(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 ([url]http://www.dotnet247.com/[/url])
<Id>AG+/uJiC30+qUrfqbzImJQ==</Id>
Victor Garcia Aprea [MVP] Guest



Reply With Quote

