Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am not sure how to do Tutorial 2-14 of the textbook called Starting out with Visual Basic 6th Edition while having to use Visual

image text in transcribed

I am not sure how to do Tutorial 2-14 of the textbook called Starting out with Visual Basic 6th Edition while having to use Visual Studio Community 2017.

Y F Quick Launch (Ctrl-0) Form1.vb Read Onlv Microsoft Visual Studio O hittp: X S Starti X e Cetl X New Tab X visu: X Debug Edit Project Team Tools Test View Analyze Window Help Yasmin Valenzucia i files.transtutors.com/cdn/uploadassignments/2689091_2_addison wesley starting Attach. Dlaruny vUL VTIuI VRsuaI DESIU Ibox Form1.vb i 9 x Fom 1.Designer.vb a Form1 Solution Explarer Miscellanecus File: - btnExit Click learn more about string literals in Chapter 3. aclass Fornl We usually display messages on a form by setting the value of a Label control's Text prop- erty. In Tutorial 2-14 you open and examine an application in the student sample programs folder that demonstrates this technique. Search Solution Fxplorer (Ctrl +) a Solution Solution?" (0 prejects) vate Sub btnExit Click(ByVal sender As Sy ' End Lhe applicalion. Ne.Close() I Sub Tutorial 2-14: Cvate Sub btnFeet Click(ByVal sender As Sy Examining an application that displays messages in a Label control ' Display the conversion to feat. 1hlMessage. Text - "1 Kilometer - 3, 281 f Start Visual Studio and open the KiloComverter project from the student sample programs folder named Chap2\KiloComverter. Step 1: I Sub 11 12 Evate Sub btn Tnches_click (ByVal sender As ' Display the cornversion to inches. 1hlMessage. Text - "1 Kilometer - 39, 378 Open the Designer window, which displays Forml, as shown in Figure 2-62. 13 Step 2 14 Click the Start Debugging button () to run the application. Step 3: 15 Once the application is running, click the Inches button. The form displays the number of inches equivalent to a kilometer, as shown in Figure 2-63. I Sub Step 4: 16 17 Ovate Sub btnMilcs_Click(ByVal sender As S ' Display the conversion to miles. 18 Step 5: Experiment with the other buttons and observe the messages that are displayed 19 when each is clicked. 20 161Mcssage. Text = "1 Kilometer = 0.6214 I Sub Step 6: Click the Exit button to exit the application. Let's examine the application code. Figure 2-64 shows the KiloConverter application form with its controls labeled. 21 22 Solution Explorer Team Lxplorer Evate Sub btnYards Click(Byval sender As S ' Display the conversion to yards. 1bMessage. Text - "1 Kilometer - 1, 093.5 I Sub The buttons btnInches, btnFeet, btnYards, and btnMiles each change the lblMessage Text property when clicked. In the next step, you will view the KiloConverter event handlers. 23 24 Properties 25 26 Figure 2-62 Kilometer Converter form ISS 28 Kilometer Cenerte 1 Kilometer = ? nches Feet Yade Ms 1:16 PM P Start a web search 1/28/2020

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions

Question

D How will your group react to this revelation?

Answered: 1 week ago