CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2006
    Posts
    38

    how can i draw circular button

    hi every body
    could someone help me to make ownerdraw circular button,i know how to draw custom button but the shape of the button is always rectangle.

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: how can i draw circular button

    You have to create the circle through code, then set the button's Region to that shape. Browse this forum for shaped buttons or forms

  3. #3
    Join Date
    Mar 2006
    Posts
    38

    Re: how can i draw circular button

    thanks
    but should create user control for that the add the code or where can i create the circle region

  4. #4
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: how can i draw circular button

    In the Paint Event, or some other Event that Draws() directly to your form
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

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

Featured