Home Forums ActiveX components Other ActiveX components Sizing a multiline smartitem to the correct height

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #43218 |

    Anyone have vb6 code for resizing a editmultiline item to the correct height to display a specific string?

    Thanks much in advance!

    Applies to Xceed SmartUI (ActiveX). Imported from legacy forums. Posted by Bob (had 3293 views)

    User (Old forums)
    Member
    Post count: 23064

    Try this:

    Add a Label control to your form, set it to autosize.

    Now assign the smartitem text to the label control.
    Set the width of the label control to match the width of the item.
    Now use the height property of the label control to set the height of the item

    Applies to Xceed SmartUI (ActiveX). Imported from legacy forums. Posted by arnout (had 3819 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.