Results 1 to 3 of 3

Thread: Odd shaped controls

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 1999
    Location
    Pierre, SD USA
    Posts
    23
    My question is similar to Wangeng's question on 3/31 concerning shapes being buttons, except I am looking for a way to make a picture box be other than rectangular. The effect I am looking for is sort of a sunken light. I realize I could use a normal picture box as a guide and draw the desired shape in a graphics program (i.e., Paint Shop Pro), then simply place the resulting picture in an image control, but then I am faced with a color problem; namely, what if the user has a different Windows color scheme than mine. The "odd" portions of the picture (those parts that are supposed to appear to be the form but are in fact part of the picture) will be a different color than the form, causing the desired effect to be lost.

    Also, d_yard's suggestion of using the VB Shaped Form Creator won't work the author doesn't appear to have made the source available.

    I would appreciate any suggestions!

  2. #2
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    461
    Make it a non-interlaves Gif 89a which allows you to set a transparency colour such that the "background" on your image will always show through the correct window's colour scheme.

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    You can change the region for a regular picturebox with some API's

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