CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2001
    Location
    Bucks, UK
    Posts
    10

    WinForms visual shape objects??

    Has anyone found a way of adding say a circle to their Form?


  2. #2
    Join Date
    Dec 2000
    Location
    Bombay, India
    Posts
    50

    Re: WinForms visual shape objects??

    yep, You have to use GDI+ and then use the Region Property of the Form to shape the Form.


    Saurabh Nandu
    mail[email protected]
    http://Learncsharp.cjb.net

  3. #3
    Join Date
    Apr 2001
    Posts
    1

    Re: WinForms visual shape objects??

    You can use the properties editor to add a callback method for the Paint event. Using the arguments passed to that method you can obtain a Graphics object and this graphics object will have a DrawCircle method. The Graphics object is the C# equivalent of a Win32 Device Context. Hope this helps.


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