Results 1 to 3 of 3

Thread: [2.0] Flat Button Appearance

  1. #1

    Thread Starter
    Fanatic Member JPicasso's Avatar
    Join Date
    Aug 2001
    Location
    Kalamazoo, MI
    Posts
    843

    [2.0] Flat Button Appearance

    I have a series of buttons that are created progromatically.
    I need to change their flatstyle to FlatStyle.Flat, which I've done,

    but now I need to alter their .FlatAppearance parameters.
    Basically, bordersize =0.

    These are normal buttons, but I get them from a separate DLL, as
    they have some inherited interfaces tacked onto them.

    All their normal props and methods are available, but .FlatAppearance is read-only.


    Any suggestions?
    Merry Christmas

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

    Re: [2.0] Flat Button Appearance

    FlatAppearance being ReadOnly is not an issue. All that means is that you cannot create a new FlatButtonAppearance object and assign it to the property. It doesn't stop you editing the properties of the existing object. Just set the FlatAppearance.BorderSize property to zero and you're away.
    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

  3. #3

    Thread Starter
    Fanatic Member JPicasso's Avatar
    Join Date
    Aug 2001
    Location
    Kalamazoo, MI
    Posts
    843

    Re: [2.0] Flat Button Appearance

    I swear I tried that.

    Thanks (again)
    Merry Christmas

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