I created a user control with VB
By:
IWidth=UserControl. ScaleWidth
IHeight=UserControl. ScaleHeight
Get the user control the width and height, but it seems that these properties are read-only, excuse me, how to use code sets the user controls the width and height?
Thank you very much!
CodePudding user response:
Directly in Form1 control line ah, don't need to control in control itself,

CodePudding user response:
(ScaleWidth, ScaleHeight) is to control internal size,The size of the controls on the form is (Width, Height),
Both can be different coordinate unit; Even if the coordinate unit is consistent, controls have borders when two size is different also,
CodePudding user response:
On the first floor is too great, hold,CodePudding user response:
The