Ask a questionAsk a question
 

General DiscussionHow to use a Transparency key in Splash Screen

  • Thursday, November 05, 2009 11:12 AMOvais Memon Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Dear All,

    I have designed a JPG file and want to use in splash screen in my vb.net project. I have set this image in form's background image property. In this JPG file, the blank space is filled with white background by default. But I dont need to show this white background in splash screen. Someone told me that there is a way to do this job by using transparency key. I tried alot by setting form's transparency key to white and also form's back color to white, but it doesn't work. Can anyone help me...

    Thanks

    Ovais

All Replies

  • Saturday, November 14, 2009 10:50 AMRanjith K.U. Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Dear Ovais,

    Use this code to make the form transparent and not the image.

    In the Form load event type the following code:


    Private

     

     

     

    Me.BackColor

     

    End Sub


    If this answers your question, please mark it as answer.

    Regards,
    Ranjith

    Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    TransparencyKey =

  • Saturday, November 14, 2009 10:53 AMRanjith K.U. Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Dear Ovais,
    Use the code below to make the form transparent and not the image.

    In the Form Load event type the following code:

    Private sub Form1_Load(By val.......................................................................)
    TransparencyKey=Me.BackColor
    End sub

    I hope this helps.

    Regards,
    Ranjith

    If this answers your question, please mark it as answer.