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

Question:

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.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: