Results 1 to 10 of 10

Thread: transparent PictureBox

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Croatia
    Posts
    200
    Hi!

    I have a tiny little question

    Is there a way to make a PictureBox transparent?
    If so, how can I do it?

  2. #2
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    Kedaman made one for someone a long time ago...I think it's still on his site: http://www.kedaman.com

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Croatia
    Posts
    200
    I know that, but it looks like he removed it from his pages. So how about it kedaman? Can you pleeeease help

    Thanks anyway SteveCRM!

  4. #4
    New Member
    Join Date
    Nov 2000
    Posts
    1

    just make it a .gif file

    If you mean to make part of your picture transparent, just save it as a .gif file with a transparent background. most photo editors allow you to make one color trasparent. It should be in the Save As... menu.
    Bill Gates is the AntiChrist

    that is all i have to say

  5. #5
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    GIF sucks! If you need a sprite control, there's one on my website...

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Croatia
    Posts
    200

    Lightbulb

    I agree with you Fox

    Actually, I need this for my application, for drawing various shapes, gradients, etc. Since the VB's Shape control cannot be selected at run-time, this is a bit unconvenient. I thought that it would be easier to make the PictureBox transparent and then draw things on it, then to create a custom UserControl...but it looks like I'll have to that...

  7. #7
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221

    Gifs are evil! :rolleyes: as yonatan would say

    nope! i never remove stuff from my homepage, at least not transparent controls! it actually seems to be the link that didn't work. fixed now:
    http://www.geocities.com/kedasu/kedacode.html

    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Croatia
    Posts
    200
    Thanks kedaman, but that's not what I wanted

    I want to be able to print shapes, circles, etc. ON the picture box, so that only those areas are visible.
    Well... nevermind, I created my own control for this. It works for now

  9. #9
    Hyperactive Member
    Join Date
    Feb 2000
    Location
    Edgerton, WI
    Posts
    381
    kedamen,

    I tried to download your transparent PictureBox Control but apparently the link is broken again. Can you send me a copy.

    Thanks,
    Rev. Michael L. Burns

  10. #10
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Well the link works but Geocities does this oftenly, you just wait some hours and it works again
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

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