Question: In this exercise, you will create a splash screen that has a transparent background. a. Open the VB2015Chap01Transparency SolutionTransparency Solution (Transparency Solution.sln) file. If necessary,

In this exercise, you will create a splash screen that has a transparent background.

a. Open the VB2015\Chap01\Transparency Solution\Transparency Solution (Transparency Solution.sln) file. If necessary, open the designer window.

b. Click the form’s title bar to select the form. Set the form’s FormBorderStyle property to None.

c. Click TransparencyKey in the Properties window. The TransparencyKey property determines the color that will appear transparent when the application is run. To make the form transparent, you set its TransparencyKey property to the same color as its BackColor property. Click the TransparencyKey property’s list arrow, then click the System tab, and then click Control.

d. Open the Code Editor window, which contains the Me.Close() instruction in the picHeart_Click event. Save the solution and then start the application. Because the color specified in the form’s BackColor property is the same as the color specified in the TransparencyKey property, the form appears transparent. As a result, the splash screen shows only the image contained in the picture box. See Figure 1-38.

in Search Solution Explorer (Ctrl+ CHeart Click(sender As Object, e As Solution 'Transparency Sol V3 Transparency Project y My Project Eeferences urces nfig m.vb Happy Valentine's Day

e. Click the picture box to end the application. Close the Code Editor window and then close the solution.

in Search Solution Explorer (Ctrl+ CHeart Click(sender As Object, e As Solution 'Transparency Sol V3 Transparency Project y My Project Eeferences urces nfig m.vb Happy Valentine's Day

Step by Step Solution

3.34 Rating (163 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

ae Microsoft Visual Studio Solution File Format Version 1200 Visual Studio 14 VisualStudioVersion 140220131 MinimumVisualStudioVersion 100402191 ProjectF184B08FC81C45F6A57F5ABD9991F28F Transparency Pr... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming with Microsoft Visual Basic 2015 Questions!