User defined property saving problem

Ask a Question related to ASP.NET Building Controls, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. [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...
    4. 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...
    5. 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...
  3. #2

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139