Results 1 to 12 of 12

Thread: Strange behaviour with TextHeight function [resolved]

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2002
    Location
    UK
    Posts
    506

    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.
    Attached Files Attached Files
    Last edited by adzzzz; Jan 3rd, 2004 at 03:14 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width