Setting Properties At Run-Time (Continue)
Not all the properties get text values.
For example, Visible property can be "True" or "False"
False and True are not text strings, but
Visual Basic commonly used values that called "Boolean"
Therefore, when you assign these values to property,
You don't have to use the quotes, For example:
Command1.Visible = False
Form1.Enabled = True
Some of the properties values has the following syntax:
Number - String
For example, the Command Button's Style property can
get 2 values:
0 - Standard
1 - Graphical
To set these properties value, omit the string.
For example:
Command1.Style = 1
Form1.WindowState = 2
Some properties represent graphics, for example
The Picture property.
To set these properties at run-time, use
the LoadPicture Command.
The example below will load the ICO file "d:\games\toto.ico"
to the Picture property of Command Button with the name "MyButton"
MyButton.Picture = LoadPicture("d:\games\toto.ico")
Popular Posts
-
Defined data types (typedef) C++ allows the definition of our own types based on other existing data types. We can do this using the keyword...
-
JSP pages are high level extension of servlet and it enable the developers to embed java code in html pages. JSP files are finally compiled ...
-
<%@page contentType="text/html" import="java.util.*" %> <!-- http://www.roseindia.net/jsp --> ...
-
Java Server Pages JavaServer Pages (JSP) technology is the Java platform technology for delivering dynamic content to web clients in a por...
-
* Install software as described in Software needed for the lab above. * Once you installed J2SE SDK, please check if it is installe...
-
In this section we will explain you about JSP Action tags and in the next section we will explain the uses of these tags with examples. We w...
-
Learning about Parameters (Continue) Look at the first line of the Command Button's KeyDown Event: Private Sub Command1_KeyDown(KeyCode ...
-
What Is Visual Basic and Why do I need it? Visual Basic is Easy to learn Programming language. With Visual Basic you can develop Windows bas...
-
Input/Output with files C++ provides the following classes to perform output and input of characters to/from files: * ofstream: Stream c...
-
SQL Server Express is a free, easy to use, redistributable version of SQL Server 2005 designed for building simple data-driven applications....
No comments:
Post a Comment