Results 1 to 9 of 9

Thread: Splash screen dilemma [Resolved]

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2005
    Posts
    124

    Talking Splash screen dilemma [Resolved]

    Well, I'm trying to make a splash screen but one like Photoshop has. Not exactly, but similar. I Photoshopped a graphic with a sqare where I can put information, but the trouble is, the graphics which are not in the square. I left some WHITE space around the square and put some graphics on the outside of it. I saved the image and imported it into the form I made which is just a blank non-resizeable form. I was kinda hoping that setting the transparacy key to White would also work on the picture, but I was mistaken. It appears that the white border appears. If you can't visualise the splash I want to achieve, think along the lines of Adobe Acrobat.

    What I want to know is, is it possible to make VB.NET exclude the white in my background image while not showing the form behind the image after the white is removed? I can't think of a solution, maybe you guys can help me. Thanks
    Last edited by martw; Apr 21st, 2005 at 07:14 PM. Reason: Resolved

  2. #2
    Fanatic Member cpatzer's Avatar
    Join Date
    Sep 2004
    Posts
    537

    Re: Splash screen dilemma

    If you set the Transparency key to white and the background color of the form to white you get an invisible form.

    If you want your image to be transparent as well and this doesn't work for the image you can load the image as a bitmap and then make the bitmap transparent like this:

    VB Code:
    1. Dim MyBitmap As Bitmap = Image.FromFile("C:\t.bmp")
    2.         MyBitmap.MakeTransparent(Color.White)
    3.         'Then assign draw the image to the control in the form paint event or however you wish

    I hope this helps,
    In life you can be sure of only two things... death and taxes. I'll take death.

  3. #3
    Fanatic Member cpatzer's Avatar
    Join Date
    Sep 2004
    Posts
    537

    Re: Splash screen dilemma

    BTW I just went through creating a SplashScreen. Getting it to work like Adobe's is a B*$%h. You have to use a new thread. If you need help feel free to let me know.
    In life you can be sure of only two things... death and taxes. I'll take death.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Mar 2005
    Posts
    124

    Re: Splash screen dilemma

    Thanks for the quick help But the result isn't quite what I intended. you see... It managed to get rid of the white, but what happened instead is that it basically but black where the white once was.

  5. #5
    Fanatic Member cpatzer's Avatar
    Join Date
    Sep 2004
    Posts
    537

    Re: Splash screen dilemma

    Are you seeing the white on the form or the image?
    In life you can be sure of only two things... death and taxes. I'll take death.

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Mar 2005
    Posts
    124

    Re: Splash screen dilemma

    Maybe I'll jut post screen shots The thing is I'm not seeing any white.

    Is:


    Should:


    What I did on "Should" is I removed the background so the white border is gone. But just for the picture you see so you know what I want to exclude. The whie is there in splash.bmp which is what I loaded.

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Mar 2005
    Posts
    124

    Re: Splash screen dilemma

    If I can't get it to work properly, then I guess I can just shrink the Ticks to fit in the square...

  8. #8
    Fanatic Member cpatzer's Avatar
    Join Date
    Sep 2004
    Posts
    537

    Re: Splash screen dilemma

    Here is a complete project that should work for you.

    Let me know how it works out.


    To give credit where credit is due: I got quite a bit of help on this earlier from Aaron Young in this thread: http://www.vbforums.com/showthread.php?t=332290
    Attached Files Attached Files
    In life you can be sure of only two things... death and taxes. I'll take death.

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Mar 2005
    Posts
    124

    Re: Splash screen dilemma

    Ah! Thanks! That should help me solve the problem

    The page which you gave the link to, well, I saved that page yesterday onto my comp. I just remembered now that I have it. Thanks again. This saved me a load of hassle and helps me learn some new stuff in the process.

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