CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Form shape

  1. #1
    Join Date
    Apr 2001
    Posts
    13

    Form shape

    Hi,

    I would like to display my form with the edges rounded. They should not be sharp edges. Any suggestions?

    Thanks.


  2. #2
    Join Date
    May 2001
    Posts
    46

    Re: Form shape

    Check this page http://www.allapi.net/vbasic/source.php , there is an example on how to create an irregular shaped form, the name is region.zip.

    Hope this helps.



  3. #3
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Form shape

    You can check out this tutorial, documented with working examples (written by a great author, ok maybe not):
    http://www.planetsourcecode.com/xq/A...s/ShowCode.htm

    Tom Cannaerts
    [email protected]

    Programming today is a race between software engineers striving to build bigger and better idot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  4. #4
    Join Date
    Dec 1999
    Location
    Dublin, Ireland
    Posts
    1,173

    Re: Form shape

    Any window can be set to any predefined shape with the SetWindowRgn() API call.
    You create a region with CreateRectRgn(), CreateRoundRectRgn(), CreatePolyRgn() or CreateElipticRgn()

    Hope this helps,
    Duncan

    -------------------------------------------------
    Ex. Datis: Duncan Jones
    Merrion Computing Ltd
    http://www.merrioncomputing.com
    Check out the new downloads - ImageMap.ocx is the VB control that emulates an HTML image map, EventVB.OCX for adding new events to your VB form and adding System Tray support simply, MCL Hotkey for implemenmting system-wide hotkeys in your application...all with source code included.
    '--8<-----------------------------------------
    NEW -The printer usage monitoring application
    '--8<------------------------------------------

  5. #5
    Join Date
    Jun 2002
    Location
    Pasadena, CA
    Posts
    11

    Shaped Forms

    I have used a product called TYPICAL_FormShaper. It allows you to make a form or control the shape of any bitmap. I'd recommend it highly.

    www.typicalsoftware.com
    How Hard Could it Be?

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