Apply native formatting from control to copied information from another source

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bkyzer
    New Member
    • Aug 2012
    • 11

    Apply native formatting from control to copied information from another source

    I've got a form with several text controls and I'm looking for some code that will help apply the standard font, font size, color, and alignment properties native to that control when I copy text to that control from another source that has different formatting.

    Thoughts?
  • twinnyfo
    Recognized Expert Moderator Specialist
    • Nov 2011
    • 3664

    #2
    bkyzer,

    If you set the text box's Text Format property to Plain Text, it won't matter what kind of text you copy into that control, it will always have the native text format you have applied to that text box.

    However, if you do have it set to rich text, just execute code on the After Update event that will update the font, size, color and alignment properties of that text box.

    What solutions have you tried thus far?

    Comment

    • bkyzer
      New Member
      • Aug 2012
      • 11

      #3
      Plain test in the properties is just what I need. Just didn't think about that at first. Thanks.

      Comment

      Working...