Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing the size of a userControl

Status
Not open for further replies.

bjk3

Technical User
Joined
Jan 10, 2001
Messages
2
Location
US
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?
 
tried that already, but it had no effect.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top