Results 1 to 2 of 2

Thread: [2005] Changing the font in a text box, by selecting properties in a list box

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2008
    Posts
    1

    [2005] Changing the font in a text box, by selecting properties in a list box

    I have a text box that users are inputting text into. Then, but selecting from the right, they can change the size, color, and the font that is displayed in the text box.

    I'm totally lost on how this should be done!

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: [2005] Changing the font in a text box, by selecting properties in a list box

    I'd probably suggest using a FontDialog to do the heavy lifting. If you really want to do it yourself then you need to create a new Font object, setting its property values implicitly via the constructor, and then assign that to the control's Font property.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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