1 Attachment(s)
Strange behaviour with TextHeight function [resolved]
I have created a user control which simulates a textbox control, but instead of having the text contained within the control flush with the top, it is flush with the bottom. If anyone knows another way of achieving this please let me know and I can ditch my user control solution.
Anyway more on the problem, the project I will be implementing the user control in will have a feature to change the text size displayed but with the user control I get some strange results when changing the size to 12 and 24. The textheight function which basically controls the resizing of the textbox seems to be giving out incorrect results thus sizing the textbox too large.
It's hard to explain what the control actually and does and what's wrong with it so you are best of having a look at my mockup test project to see what's going on. Any help highly appreciated.
Cheers- adehh.