The PaletteSet changed control size and layout. It's different from the status in VS.
What's the reason? PLS help!
Hi there,
Sorry for this perhaps stupid question, but have you tried anchoring you controls???
If so the pallatsize depending on the achors you used on your control could cause this strecthing behavior.
Hope this could help you to solve your problem.
Kind regards,
Irvin
Hi,
look to this image, I did create one usercontrol, placed instances of it to two palettesets ... the difference I set seems to give you a chance to solve your problem:
left part: pPaletteUI1.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
right part: pPaletteUI2.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None
HTH, - alfred -
Thanks Alfred,
I didn't see autoscalemode property under paletteset. could you be more details?
Thanks again
Hi,
>> I didn't see autoscalemode property under paletteset. could you be more details?
No, it's not a property of the paletteset. It is a property of your usercontrol (that you instanciated and placed inside the paletteset)
You can do that by setting the property in the code or you open your usercontrol in VisualStudio and set the property in the VS-PropertyWindow.
The background of that seems to be in the standard-font you use for the usercontrol (and the fonts of the controls inside the usercontrol are - by default - inherited from that). During you see the usercontrol in you VisualStudio-Formseditor the font is depending from your default-settings. But when loaded into AutoCAD (within a paletteset) the fonts seems to be changed ==> and as long as the AutoScaleMode is set to font-depended all will get resized to the new font-properties.
HTH, - alfred -
Thanks Alfed,
I found it
I also found this