Developing Applications .8T-1
Developing Applications .8T-1
Rename with
project name
• Step 3
Toolbox
Properties
Script Window
Script window is
used to write and
execute programs
or scripts to
automate tasks or
extend the
functionality of
the software. It
provides tools for
writing code and
often supports
languages like
Visual basic .NET,
JavaScript or
Python.
Variables
• In Visual Basic .NET, a variable
is like a container that holds
information. Think of it as a
box where you can put
things, like numbers or
words, to use later in your
program.
Public & Private Variables And Their Use:
• Public Variables:
• Public variables are like items you put on display in a store for everyone to see and use.
• They can be accessed and changed from anywhere in your program.
• They're useful when you want different parts of your program to share information easily.
• Private Variables:
• Private variables are like items kept in a secret room that only you can access.
• They can only be accessed and changed within the same place (like a room or function) where
they are declared.
• They're useful when you want to keep certain information private and prevent other parts of your
program from accidentally changing it.
• Example:
• In this code:
• We have a Person class
representing a person.
• Each person has a name that
anyone can know (name).
• Each person also has an age,
which only they know (age).
This is private.
• We have methods SetAge() and
GetAge() to change and retrieve
the age safely.
• In the main program, we create
a person named "John", give
him an age of 25, and then
show his name and age.
Code Description:
Common Data Types
• Integer (int): Used to store whole numbers without decimal points.
Example: 5, -10, 1000.
• Float/Double: Used to store numbers with decimal points.
Example: 3.14, -0.5, 10.0.
• String: Used to store text or a sequence of characters.
Example: "Hello, World!", "Python", "12345".
• Boolean (bool): Used to store true/false values.
Example: True, False.
• Character (char): Used to store a single character.
Example: 'a', 'X', '!'.