Results 1 to 2 of 2

Thread: Rounded Button

  1. #1

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,711

    Rounded Button

    This is my second attempt at making a custom control. I've decided to make a rounded button, simply because I haven't seen one posted here on the forums!

    Features:
    1. It's a button that is round
    2. Has left and right arrows(see picture below)


    Drawbacks:
    • None as far as I can tell. I've inherited the button control to try to make sure that there are no errors or drawbacks.



    Plans:
    1. I will probolly make a feature where you can arc the text in the control rather than it being left to right.




    Custom Properties:
    1. _Arrow = Gives you the option to add a left or right faced arrow to the button
    2. _ArrowColor = If you've decided to use the arrow in the button, this gets or sets the arrow's color



    Screenshot:
    Name:  arrow.jpg
Views: 2485
Size:  8.5 KB


    Describing the screenshot:
    In this screenshot, I've set the arrow to left, the arrow's color to white, the button's backcolor to highlight blue, and the flatstyle as popup.

    I'm up to any suggestions if y'all have any!


    File:
    Rounded Button.zip

    Update!
    I use OnPaint instead of Paint so that the changes are reflected in the designer view.
    Last edited by dday9; May 31st, 2013 at 01:39 PM.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

  2. #2

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,711

    Re: Rounded Button

    I have found something minor with this control. If you leave the flatstyle as default, the very bottom and very right side of the button show a piece of a regular button. It's hard to describe, however if you test it out, you'll see what I mean.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

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