Properties Problem
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Hi I have a custom property updating another custom properety the code is as follows
public enum CodePageType { None, Swift, ASCII, Trade }; public string RegularExpP { get { return regularEx; } set { regularEx = value; } } [Category("Custom Properties")] [DefaultValue(false)] public CodePageType Validate { get { if (type == CodePageType.ASCII) { RegularExpP = "Exp1"; } if (type == CodePageType.None) { RegularExpP = "Exp2"; } return type; } set {type = value;} }
Now when i select the validate property the RegExpP property is set in the UI but its not getting updated in the Form1.Designer.cs Page.But its getting updated only the second time, and this time it sets the previous value i selected hat could be the problem Regards Deepak.s