2
Answers

Scaling problem with user control at runtime

Chasse Court

Chasse Court

11y
1.1k
1
Hi,
I am new to c# and as a project decided to create a colour picker control, to test my code I wrote it in a vanilla form first and then copied the code into the control when I was sure it was working.

This results in a control that in design view shows absolutely nothing thus far but when the control is compiled you see a visual representation of the final result.

Here is the rub however; as I said the compiled control looks perfect when I place it on a form in the designer - but when I run the program the control on the form looks about 25% larger and due to this its right and bottom edges are clipped.


Now I have no idea why this is happening, can anyone tell me why and how to fix it?

Attachment: code.zip

Answers (2)