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
Greg works for an online games development company. He is not a net freak, but occasionally he visits online literature sites an
sweet-ann [11.9K]

Answer:

i think its A

Explanation:i hope i helped

5 0
3 years ago
What is the process in which a server is partitioned into smaller components virtually
lilavasa [31]

The answer to your question is,

Server virtualization

-Mabel <3

3 0
3 years ago
The set of rules for how computers talk to one another
andrezito [222]
That is program ............
4 0
3 years ago
Andreas wants to insert an element into an email that will graphically display the values in a table. Which option should he cho
Montano1993 [528]

Answer:

D. chart

Explanation:

Correct on edg

5 0
2 years ago
Porque sophia es un robot mujer?
gregori [183]
Sophia es un robot humanoide (ginoide) desarrollado por la compañía, con sede en Hong Kong, Hanson Robotics. Ha sido diseñada para aprender, adaptarse al comportamiento humano y trabajar con estos satisfactoriamente.
7 0
2 years ago
Other questions:
  • You have been doing a lot of web surfing lately as part of your research for your course and along the way you have noticed a gr
    14·1 answer
  • Why might people feel differently about their digital lives?
    11·1 answer
  • What is a binary message
    12·2 answers
  • A person who wants to buy a compact disc (cd) has just enough money to buy one, and chooses cd a instead of cd
    10·2 answers
  • Which of the following topics should you avoid bringing up during a college interview?
    10·2 answers
  • A girl scout troop with 10 girl scouts and 2 leaders goes on a hike. When the path narrows, they must walk in single file with a
    12·1 answer
  • Once artwork is inserted into a placeholder, it can be moved around on a slide. True False
    9·1 answer
  • You are developing a Windows forms application used by a government agency. You need to develop a distinct user interface elemen
    14·1 answer
  • Julie is purchasing new shoes on a website for her favorite store. Which of the following would indicate that a website is a sec
    6·1 answer
  • Which of the following are picture adjustments that can be made to images?
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!