I am trying to write code to change the size of a user control to specified dimensions (height & width, in twips). To my frustration, every time I execute the code, the user control's dimensions become slightly smaller than what I specified. For example, if I execute the following code:
usercontrol.width=1200
and then, without doing anything else, I display usercontrol.width in a textbox (or label, or in the immediate window), it will display a slightly smaller number, such as 1152 (always a multiple of 12 smaller than the original number). Does anybody know why this is happening? My user control has no border.
Any ideas?
usercontrol.width=1200
and then, without doing anything else, I display usercontrol.width in a textbox (or label, or in the immediate window), it will display a slightly smaller number, such as 1152 (always a multiple of 12 smaller than the original number). Does anybody know why this is happening? My user control has no border.
Any ideas?