Purchase Solution

Visual Basic (Company Logo Designer Application)

Not what you're looking for?

Ask Custom Question

See the attachments.

(Company Logo Designer Application) Develop a Company Logo application that allows users to design a company logo (Fig. 26.29). The application should provide the userwith RadioButtons to allow the selection of the next shape to draw. TextBoxes should be provided to allow the user to enter the dimensions of the shapes.

a) Copying the template to your working directory. Copy the directory C: Exampl esTutori al 26Exerci sesCompanyLogo to your C: Si mpl yVB2008 directory.

b) Opening the application's template file. Double click CompanyLogo. sl n in the CompanyLogo directory to open the application.

c) Defining the Add Button's Click event handler. Create the Add Button's Cl i ck event handler. Define the event handler so that the shape that users specify is drawn on the Pi ctureBox. Use the CreateGraphi cs method on the Pi ctureBox to retrieve the Graphi cs object used to draw on the Pi ctureBox. Use the Graphi cs methods described in Fig. 26.13. Use method Col or. FromName to create a color corresponding to the selected color in the ComboBox. [Note: The TextBoxes labeled X1 :, Y1 :, X2: and Y2: must contain integers to draw a line. Also, the TextBoxes labeled X:, Y:, Width: and Height: must contain integers to draw any other shape.]

d) Defining the Clear Button's Click event handler. Create the Clear Button's Cl i ck
event handler, and define it so that the Pi ctureBox is cleared. [Hint: To clear the
entire Pi ctureBox, use the Pi ctureBox's Inval i date method. The Inval i date
method is often used to refresh (update) graphics of a control. By using the Inval i -
date method without specifying a graphic to draw, the Pi ctureBox clears.] Also
ensure that all TextBoxes are cleared when the Clear Button is clicked.

e) Running the application. Select Debug > Start Debugging to run your application.
Use the Radi oButtons and TextBoxes to display at least one of each type of shape.
Use different colors for the different shapes. Click the Clear Button to clear the
shapes.

f) Closing the application. Close your running application by clicking its close box.

g) Closing the IDE. Close the Visual Basic IDE by clicking its close box.

Purchase this Solution

Solution Summary

The solution assists with developing a company logo application that allows users to design a company logo.

Purchase this Solution


Free BrainMass Quizzes
Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Basic Networking Questions

This quiz consists of some basic networking questions.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.