How to Create PictureBox Oval form?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Thread: How to Create PictureBox Oval form?

  1. #1
    Join Date
    Oct 2012
    Posts
    59

    How to Create PictureBox Oval form?

    I had oval picture and want to add in picturebox. Problem this that picturebox is square. I need picBox as oval.

  2. #2
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,722

    Re: How to Create PictureBox Oval form?

    This can only be achieved by API calls dealing with regions. What you need can possibly be achieved using the CreateEllipticRgn API call
    http://allapi.mentalis.org/apilist/C...ipticRgn.shtml
    Better hints can only be given if you explain more about what you want to do.

  3. #3
    Join Date
    Oct 2012
    Posts
    59

    Re: How to Create PictureBox Oval form?

    Quote Originally Posted by WoF View Post
    Better hints can only be given if you explain more about what you want to do.
    I think i explained clearly what I need. I need circular form picturebox, not square.

  4. #4
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008
    Location
    WV
    Posts
    4,823

    Re: How to Create PictureBox Oval form?

    Quote Originally Posted by Halosar7 View Post
    I think i explained clearly what I need. I need circular form picturebox, not square.
    Well if you think that then you would be wrong. You first post says you want Oval. the next says Circular these are similar but different so not so clear and oh btw a box is neither oval nor circular it is square or rectangluar which is why it is called a box.

    So if you do not want to give more detail I'll leave you with that.
    Always use [code][/code] tags when posting code.

  5. #5
    Join Date
    Oct 2012
    Posts
    59

    Re: How to Create PictureBox Oval form?

    Quote Originally Posted by DataMiser View Post
    Well if you think that then you would be wrong. You first post says you want Oval. the next says Circular these are similar but different so not so clear and oh btw a box is neither oval nor circular it is square or rectangluar which is why it is called a box.

    So if you do not want to give more detail I'll leave you with that.
    Oval and circular not same In that case i try explane better. You see in vb picturebox form is square.When i want to add picture it must be same form as picturebox. But how to change picturebox form from square to circular? so i can add circular picture.

  6. #6
    Join Date
    Jul 2005
    Posts
    1,074

    Re: How to Create PictureBox Oval form?

    Halosar7, Did you try what was posted in post #2 ?
    That could be the solution to your problem
    JG


    ... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...

  7. #7
    Join Date
    Oct 2012
    Posts
    59

    Re: How to Create PictureBox Oval form?

    Quote Originally Posted by jggtz View Post
    Halosar7, Did you try what was posted in post #2 ?
    That could be the solution to your problem
    I try, it not work for me.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center