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
-
If you want to do something more complex than insert a simple expression, JSP scriptlets let you insert arbitrary code into the servlet meth...
-
Data Adapter Configuration Wizard In this section we will create our own data adapter, a built-in feature that comes with Visual Basic .NET ...
-
Creating DataTable Visual Basic allows us to create our own Tables and work with them. The DataTable is an in-memory representation of a blo...
-
4.2 The Framework Class Library Now that you have a taste of the goals and groundwork laid by the CLR and managed code, let’s taste ...
-
Data Adapter Configuration Wizard Generating DataSet To create a DataSet, select Data->Generate DataSet from the main menu. From the dial...
-
Steps to follow: 1. Modify Main.java as shown below in Code-11.2.a under personpackage directory. (You are welcome to do this work using ei...
-
SQL Management Studio comes in two flavours: 1. SQL Management Studio This edition comes with all versions of SQL Server 2005 except SQL Ser...
-
As you may already know, the C++ Standard Library implements a powerful string class, which is very useful to handle and manipulate strings ...
-
The SQL IN clause allows you to specify discrete values in your SQL WHERE search criteria. THE SQL IN syntax looks like this: SELECT Column1...
-
<%@page contentType="text/html" import="java.util.*" %> <!-- http://www.roseindia.net/jsp --> ...
No comments:
Post a Comment