|
-
March 24th, 2005, 02:47 AM
#1
PropertyGrid doesn't load correct float[] property values
I have a strange problem.
I have defined a windows component class in which there is a float [] private member like this:
private float [] m_Directions = new float[] {0,1,2};
Then I have created a property for setting and retrieving values of such a member, with designer support, like this:
[
Browsable(true),
Category("Blend settings")
]
public float[] Directions
{
get
{
return m_directions;
}
set
{
m_directions = value;
}
}
When I am in design mode, setting of float[] goes well, (and I find updated values in InitializeComponent() method. Correct!
When I shutdown .NET Devenv and then reopen my project, designer doesn't load
the last values for m_Directions array, but the old ones {0,1,2}. Why?
Is there a way to tell designer to load values from InitializeComponent() method?
Any idea?
thank you very much in advance!
JIT
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|