none
transparent splash screen

    Question

  • hello all
     
    today I've tried adding a splash screen to one of my applications and after exploring a while I somehow managed to get it working
    what bugs me now is that my splash screen is in fact a image inside a picture box and the form always shows the control color behind
    so what I tried is adding the form color to the transparency key
    this worked, somehow

    now, I use a png image that has some transparent effect also
    what I've noticed is that where I would want to show the transparent effect from the image the transparent color that is set in the forum shows
    below is the image to get my point of view:


    I'm wondering if I can remove that "pink" color (set by me in the forum) from the image
    I want to get a effect like the one Adobe products have for example
    thank you
    Monday, February 15, 2010 2:40 PM

Answers

  • Use a PerPixelAlpha form. This type of form does not paint controls and will not raise a paint event.

    There is an example on my site which has been modified to paint most of the basic controls. Just strip out what you don't need and paint the background in the UpdateWindow() method rather than adding it as a backgroundimage or in a picturebox:
    http://dotnetrix.co.uk/form.htm#tip7

    Also (although it's CSharp) this codeproject article may be helpful:
    http://www.codeproject.com/KB/GDI/pxalphablend.aspx
    Mick Doherty
    http://dotnetrix.co.uk
    • Marked as answer by Jeff Shan Monday, February 22, 2010 1:49 AM
    Thursday, February 18, 2010 6:20 PM
  • I really think you should be using a seperate form with your image as the background image. Make sure to set the FormBorderStyle to None which should only show your image and that is all.

    You might try to set the forms BackColor to the same things as the transparency key or something as well.

    Dewayne Dodd - Landshark Software "Please make sure to 'Mark As Answer' if this answer solves your question"
    • Marked as answer by Jeff Shan Monday, February 22, 2010 1:49 AM
    Thursday, February 18, 2010 5:13 PM
  • Use a Region and GraphicsPath object to define a custom shaped form.

    Mark the best replies as answers. "Fooling computers since 1971."
    • Marked as answer by Jeff Shan Monday, February 22, 2010 1:49 AM
    Thursday, February 18, 2010 5:18 PM

All replies

  • Try to use Form with background image instead of picturebox

    kaymaf
    If that what you want, take it. If not, ignored it and no complain

    CODE CONVERTER SITE : http://www.carlosag.net/Tools/CodeTranslator/.

    Monday, February 15, 2010 2:56 PM
  • Also, make sure that the image contains an 'ALPHA' channel, or transparency around any rounded edges.
    Try saving the image as a PNG.

    This will include any transparent parts.

    DJ PIP
    Monday, February 15, 2010 4:05 PM
  • Also, make sure that the image contains an 'ALPHA' channel, or transparency around any rounded edges.
    Try saving the image as a PNG.

    This will include any transparent parts.

    DJ PIP
    I can confirm that the png file uses alpha transparency
    Try to use Form with background image instead of picturebox

    kaymaf
    If that what you want, take it. If not, ignored it and no complain

    CODE CONVERTER SITE : http://www.carlosag.net/Tools/CodeTranslator/ .

    I tried that already
    Monday, February 15, 2010 4:24 PM
  • any other suggestions?
    Thursday, February 18, 2010 2:58 PM
  • I really think you should be using a seperate form with your image as the background image. Make sure to set the FormBorderStyle to None which should only show your image and that is all.

    You might try to set the forms BackColor to the same things as the transparency key or something as well.

    Dewayne Dodd - Landshark Software "Please make sure to 'Mark As Answer' if this answer solves your question"
    • Marked as answer by Jeff Shan Monday, February 22, 2010 1:49 AM
    Thursday, February 18, 2010 5:13 PM
  • Use a Region and GraphicsPath object to define a custom shaped form.

    Mark the best replies as answers. "Fooling computers since 1971."
    • Marked as answer by Jeff Shan Monday, February 22, 2010 1:49 AM
    Thursday, February 18, 2010 5:18 PM
  • Use a PerPixelAlpha form. This type of form does not paint controls and will not raise a paint event.

    There is an example on my site which has been modified to paint most of the basic controls. Just strip out what you don't need and paint the background in the UpdateWindow() method rather than adding it as a backgroundimage or in a picturebox:
    http://dotnetrix.co.uk/form.htm#tip7

    Also (although it's CSharp) this codeproject article may be helpful:
    http://www.codeproject.com/KB/GDI/pxalphablend.aspx
    Mick Doherty
    http://dotnetrix.co.uk
    • Marked as answer by Jeff Shan Monday, February 22, 2010 1:49 AM
    Thursday, February 18, 2010 6:20 PM