Visual Basic Flashcards

1
Q

.NET Framework

A

The .NET Framework is a software framework that runs primarily on Microsoft Windows. It includes a large library and supports several programming languages which allows language interoperability. The .NET library is available to all the programming languages that .NET supports. Present version is .NET Framework 4

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Class

A

Classes contains the definitions of objects including properties and methods.
BUTTON object
Exit TEXT property
cmdExit_Click Click method
Classes are also referred to as templates.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Objects include?

A

Button, CheckBox, Label and TextBox, Listbox

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Object Naming Convention

A

Form frm frmFileOpen

Check box chk chkReadOnly

Command Button cmd cmdExit

Label lbl lblWind

List box lst lstState

Text box txt txtLastName

Vertical Scroll Bar vsb vsbTemp

Option (Radio) Button opt optAC

Picture Box pic picJeep

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Object Naming

A

Must begin with a letter.

Must contain only letters, numbers, and the underscore character (_).

Punctuation characters and spaces are not allowed.

Must be no longer than 40 characters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a event?

A

An event is an action performed on an object. Event-driven subroutines are always in the form:
object_Event

The subroutine “handles” the event that happens to the object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Events example?

A

Click, CheckChanged, Leave, MouseEnter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Properties

A

A property is an attribute associated with an object. Using the dot form: object.Property

Properties can be assigned during design or run time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Properties Examples?

A

Text, BackColor, ReadOnly, SelectionMode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Methods

A

A method is like a procedure, except that it is tied to an object (control or form), just like a property. In other words, a property is made up of data attached to the object, and a method is a procedure attached to the object. Unfortunately, methods also use the dot form:
object.Method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Additional Method vs. Object Property Information?

A

Furthermore, a method is invoked by simply using the method statement.
frmGetFile.Show()

Whereas an object property is only part of a statement such as assignment.
txtTemp.BackColor = Color.Red

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Ways to tell methods and properties apart

A

Methods are usually verbs (denoting action) like Hide or Select:
frmMain.Hide()

Properties are descriptive like ForeColor or Text:
lblLetterGrade.Text=”A”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

For some methods, do you specify the class from which it is called and the syntax is different?

A
Yes, for some methods, you must specify the class from which it is called and the syntax is different.
                    Class.Method(arg(s))

Result = Math.Round(3.1415965,2)
txtSubtotal.Text = Convert.ToString(subtotal)

See p. 119 & 127 for additional Math & Convert class methods.

Yes, for some methods, you must specify the class from which it is called and the syntax is different.
                    Class.Method(arg(s))

Result = Math.Round(3.1415965,2)
txtSubtotal.Text = Convert.ToString(subtotal)

See p. 119 & 127 for additional Math & Convert class methods.

Yes, for some methods, you must specify the class from which it is called and the syntax is different.
                    Class.Method(arg(s))

Result = Math.Round(3.1415965,2)
txtSubtotal.Text = Convert.ToString(subtotal)

See p. 119 & 127 for additional Math & Convert class methods.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Preprocessor Directives Includes?

A

Global Items (variables & Constants)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

In Visual Basic where does the execution begin?

A

It depends on how the user interacts with the application.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

VB Project Files are?

A
Solution (.sln)
Project (.vbproj) 
Form (.vb)
Plus several others
Application (.exe)