answersLogoWhite

0


Best Answer

The basic code which responds to a specific event is called even procedure

OR

Event procedure is one which establishes the link between the object and code with the help of name

OR

Reaction og a control to the external condition

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

Firstly, a procedure in visual basic is a series of executable statements encapsulated between a declaration and a matching end statement. Procedures can be called by other procedures and return control to their calling procedure when completed.

The following are examples of possible procedures:

Sub

Function

Event Handling

Property Get/Set Procedures

Operator Procedures

Generic Procedures

Let's say that we want to be able to refer to a procedure by naming it as a subroutine, in this example one event procedure (Button1 Click) will call a second Sub procedure (CheckIfEqual).

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

CheckIfEqual()

End Sub

The above is how to correctly declare a Sub procedure and set it as an event handler, though visual studio will normally generate this code you automatically. You can see that when it is click, it will call and transfer control to another procedure named CheckIfEqual.

Private Sub CheckIfEqual()

If TextBox1.Text = TextBox2.Text then

MsgBox("They are both equal")

End If

End Sub

When the above is called it will check if two text boxes have equal text properties and display a message box to the user if true, it will then continue on and hit the End Sub line at which point it will return control to the calling procedure.

Hope this helps.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

the term 'Sub' initiates the body.

and then, you may have noticed the mentioning of the name of the object after 'sub' and then the required event followed by a underscore.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

Procedure declaration

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What statement causes a procedure to be executed in visual basic?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the procedure to built a class and object in visual basic?

whate is the procedure to built a class and object in visual basic.?


Which programming structure is contained in every Visual Basic procedure?

Every procedure in a Visual Basic program contains the sequence structure.


What is a VB procedure?

A procedure is a group of executable statements wrapped between a declaration statement and a matching End statement, the following are examples of valid VB procedures: Sub Function Event Handler Property Procedures Operation Procedures Generic Procedures E.g Private Sub ExampleProcedure() <Code> End Sub


What are the element of the visual basic?

A declared element is a programming element that is defined in a declaration statement. Declared elementsinclude variables, constants, enumerations, classes, structures, interfaces, procedures, procedure parameters, function returns, external procedure references, operators, properties, events, and delegates


What does visualizing mean?

it means a prop or background


What are all the different types of visual impairment?

How is V/a Test procedure


What is a visual statement that presents an interesting design or communicates a feeling?

Art


What is the syntax for if statement in visual basic?

The basic structure of an IF statement in visual basic is as follows, including the ElseIf statement which allows you to nest IF statements far more easily than writing out the whole statement again. If <Argument> Then <Code> ElseIf <Argument> Then <Code> Else <Code> End If If you need a realistic example of this then take the following example, you have a form with three text boxes and a button, the following IF statement is executed on click of the button. If TextBox1.Text = TextBox2.Text Then MsgBox("Textbox 1 and 2 match") ElseIf TextBox1.Text = TextBox3.Text Then MsgBox("Textbox 1 and 3 match") Else MsgBox("No Textboxes match Textbox 1") End If


What is a function procedure in Visual Basic?

A function is essentially a subroutine that is ment to be used by other subroutines.


What are some common causes of pain in the thigh area?

Ultrasonography, commonly called sonography, is a diagnostic medical procedure that uses high frequency sound waves (ultrasound) to produce dynamic visual images of organs, tissues, or blood flow inside the body. This type of procedure is often referred to as a sonogram or ultrasound scan.


What is the function of visual c plus plus switch condition?

The switch / case statement.


What is meant by a visual workplace?

A visual workplace uses signage and pictures to instruct workers on procedure and safety. It also increases productivity, efficiency, cost, quality and reliability.