1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
vekshin1
3 years ago
9

In the btnadd_click event handler, add the Visual Basic instructions to do the following:

Computers and Technology
1 answer:
algol133 years ago
8 0

Answer:

A. for defining the procedural level variable intLocal with an integer datatype can be declared in visual basic as below:

Dim intLocal As Integer =23

B. Remember the static is declared using shared variable in visual basic and it means same copy will be available for all instances, and the class variable are being declared as below.

Like, Shared intStatic As Integer = 25

and Dim intClass As Integer =23

C. Now we declare a constant intOne

Const IntOne = 2 outside all methods, so that it has the class level scope.

Now, We need to write:

  Label1.Text = intLocal + intOne

       Label2.Text = intStatic + intOne

       Label3.Text = intClass + intOne

label1 displays inLocal incremented value, and so on.

D.  All are displayed through same code.

Note: we can increment each variable through variable as well, rather than with the help of Label.

Explanation:

Public Class Form1

   Dim intClass As Integer = 23

   Shared intStatic As Integer = 25

   Const intOne = 2

   Private Sub Label1_Click(sender As Object, e As EventArgs) Handles Label1.Click

   End Sub

   Private Sub Label3_Click(sender As Object, e As EventArgs) Handles Label3.Click

   End Sub

   Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

       Dim intLocal As Integer = 23

       Label1.Text = intLocal + intOne

       Label2.Text = intStatic + intOne

       Label3.Text = intClass + intOne

End Sub

You might be interested in
Which of the following is an example of a currency Number format in Excel?
Elena L [17]

$21.08 is an example of a currency Number format in Excel

<u>Explanation:</u>

For items like currency, one can format numbers in cells in Excel.

To view all possible number formats, click the Dialog Box Launcher attached to Number on the Home tab in the Number group.

In the Format Cells dialog box, in the Category list, click Currency or Accounting.

In the Symbol box, tick the currency symbol.

In the Decimal places box, insert the number of decimal places.

Employed for common financial values and presents the default currency figure with quantities.

Ctrl+Shift+$ is a shortcut to represent currency values.

8 0
4 years ago
Read the following scenario and decide whether it is fair use and why Donnie has a major paper do for school he finds a great we
ss7ja [257]

Answer:

(A) and (B) I'm leaning more towards (B)

Explanation:

5 0
3 years ago
Which of these is an.optical medium of storage?
makkiz [27]
Do you have some answer choices?
8 0
3 years ago
When pasting a circle drawn by the presentation software drawing tool into a spreadsheet, that circle will go into the selected
puteri [66]

False.

When you copy an object/image or insert it manually into an Excel spreadsheet cell, what will happen is that the object will lie on a separate layer and it will float on the sheet independently from the cell. If you want it embedded inside the cell, you can either resize both the picture and adjust the cell or merge the cells.  


3 0
3 years ago
Read 2 more answers
Ashton assigned a string value to a variable. Which program statement should he use?
ryzh [129]
The second one
bc it looks correct

6 0
3 years ago
Other questions:
  • When a linke chain contain nodes that reference both the next node and the previous node it is called a(n)
    6·1 answer
  • What is Administrator windows 10
    8·1 answer
  • Stuck on where to go with this one.
    15·1 answer
  • What is an ISP?<br> in computer Networking
    11·2 answers
  • A flexible collection of computers on the internet begins to perform tasks traditionally performed on corporate computers. Major
    15·1 answer
  • this device can be used to type documents,send email,browse the internet,handle spreadsheets,do presentations,play games,and mor
    14·1 answer
  • Which of these files, when included in a program, will provide user assistance?
    5·2 answers
  • Antivirus software products require that you update _____ on a regular basis
    8·2 answers
  • Create a python code with 5 circles, 5 polygons, 5 line commands, 2 for loops, and 1 global variable
    12·1 answer
  • Pls answer i will give 20 points
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!