G
Guest
I made a custom control and I want to make impossible to resize it.
I follow these steps:
- I use a ControlDesigner (overridden SelectionRules)
- I hide the public Size property and make it readonly
- I override the protected DefaultSize property
and I achieve the correct behaviour in the designer.
The problem is that at runtime the control is many times bigger the size specified in the size property and I don't understand where this wrong size is read.
Does anyone found this problem yet?
Thanks in advance
I follow these steps:
- I use a ControlDesigner (overridden SelectionRules)
- I hide the public Size property and make it readonly
- I override the protected DefaultSize property
and I achieve the correct behaviour in the designer.
The problem is that at runtime the control is many times bigger the size specified in the size property and I don't understand where this wrong size is read.
Does anyone found this problem yet?
Thanks in advance