... Then
(Get Married)
End If
29
E.3 Các lệnh cơ bản – For Next
E.3 Các lệnh cơ bản – For Next
For counter = start To end [Step step]
[statements]
[Exit For]
[statements]
Next [counter]
41
Ví dụ 2: Bẫy ... (system-
level)
Can thiệp đến từng bản ghi
Khả năng tùy biến tham số cao
Microsoft VisualBasicfor Applications
Created & Presented by:
TBL Group
13
C.1 Chương trình con-Procedure
C.1 ... Result = First + Second
Debug.Print Result
End Sub
4
I.1 VBA là gì?
I.1 VBA là gì?
VBA: VisualBasicfor Applications
Ngụn ng lp trỡnh Microsoft Office
VBA:
ã
Mnh m hn.
ã
Linh hot hn.
ã
Li...
... Visual Studio
lets you use VisualBasic and C++ windows and menus.
START VISUAL STUDIO .NET
C#
4
START VISUAL STUDIO .NET
023601-X Ch01.F 10/18/01 11:57 AM Page 4
Form1.cs
Visual Basic and Visual ... 10/18/01 11:57 AM Page 23
Visual C# Language
Visual C# Language
■
Topic books forVisual
Basic and Visual C# appear.
ˇ
Click the Visual C#
Language book.
■
The Visual C# Language
help screen ... receive the latest information from Microsoft about
Visual Studio, get technical help from fellow Visual Studio
users at Microsoft’s online forum, and search for
information online.
Visual Studio .NET...
... CmdCreateForms_Click()
Dim MyForm, YourForm
Set MyForm = New Form2
MyForm.Caption = "This is My Form"
MyForm.Show
MyForm.Move 1000, 1000
Set YourForm = New Form2
YourForm.Caption ... hợp đó bạn
dùng Load Form2 rồi một chập sau dùng Form2.Show.
MDI Form
Đôi khi bạn muốn có một MDI form, tức là một form có thể chứa nhiều
form con bên trong. Dạng MDIform nầy thường được dùng ... phương diện, Form cũng giống như Control. Ta có thể
instantiate một form nhiều lần để có nhiều form tương tợ nhau. Trong thí
dụ dưới đây, ta instantiate Form2 hai lần để có MyForm và YourForm:
Private...
... Giới thiệu chung
Visual Basic là ngôn ngữ lập trình dùng để ràng buộc các đối
tượng trong ứng dụng với nhau thành một hệ thống hợp nhất.
Các chương trình của VBA (Visual Basicfor Application) ... Cấu trúc lặp:
a. FOR NEXT
Cú pháp:
FOR biến_đếm=giá trị đầu TO giá trị cuối [STEP bước lặp]
khối lệnh
NEXT biến_đếm
Ví dụ: Tính tổng 10 số nguyên dương đầu tiên
Tong = 0
FOR i =1 TO 10 [Step ... Macro trong VB
IV. Kích hoạt các ứng dụng khác
V. Gỡ rối mã VB
Phạm Thị Kim Ngoan 1
Phần 2: VISUALBASICFOR APPLICATION
(VBA)
Chương 1: TỔNG QUAN VỀ VB
Chương 2: CÁC KHAI BÁO TRONG VB
Chương 3:...
... một khu vực trong một hình graphic trên form, PictureBox hay Printer đến
một nơi khác. Thí dụ bạn copy một hình từ chỗ nầy đến chỗ khác trong form, hay từ
form/PictureBox ra Printer Object để ... tất cả các buttons trên form, bạn sẽ có hình dưới
đây:
Hãy nhớ set property AutoDraw của form ra True để các graphic chương trình vẽ
không bị mất khi user minimises form.Bạn cũng có thể dùng ... thì nếu flgMouseDown là True ta sẽ PaintPicture INTL_NO. Để xóa
background của form, ta thêm một button tên CmdClearForm để chạy graphic
method Cls. Dưới đây là liệt kê code mẫu:
' Flag...
... 410F/420F
ADSL Modem Pair for Advanced LAN Applications
Megabit Modems
đ
410F and 420F are point-to-point bridging and routing solutions targeted for
advanced LAN extension applications. The Megabit ... for management through
any industry standard SNMP platform
ã Autodetecting 10/100BASE-T Ethernet
port for connection to the LAN
ã LEDs for continual status at-a-glance
including power, LAN, ... network
configuration information including
IP addresses to LAN devices
ã Web browser configuration and
management tool to allow one-click
selection of ISP or other service providers
ã SNMP agent for management...
... Protection Materials Science and Technology for Future Army Applications
16 OPPORTUNITIES IN PROTECTION MATERIALS SCIENCE AND TECHNOLOGY FOR FUTURE ARMY APPLICATIONS
armor-piercing projectiles (see ... Materials Science and Technology for Future Army Applications
12
2
Fundamentals of Lightweight Armor Systems
As described in Chapter 1, the path forward for de-
velopment of protection materials ... in Protection Materials Science and Technology for Future Army Applications
SUMMARY 3
present state of performance and opening the possibility for
radically new armor system solutions to be...
... of b reast tumours
and responsible for breast cancer recurrence.
Strict control of the hormonal and SC signallin g pathways is crucial
for regulating SCs and for the correct development of the ... Southern California,
1441 Eastlake Avenue, Los Angeles, California 90033, USA
Pike, M.C.
Department of Preventive Medicine,
Norris Comprehensive Cancer Center,
University of Southern California,
1441 ... developed for the treatment of breast
cancer.
Orla M. Conneely
Christiane Otto
Preface
Steroid hormone receptors are important drug targets and have been
the focus of basic and applied research for...
... Tutorial: Learning to Program Amos with VisualBasic
ã
47
2. Remove Form1
If this is the first time you have used
Visual Basic
since its installation, the
Visual
Basic
window will probably look ... to Program Amos with VisualBasic Amos 4.0 User’s Guide
The resulting
Visual Basic
window should look like this:
58
ã
Tutorial: Learning to Program Amos with VisualBasic Amos 4.0 User’s ... Tutorial: Learning to Program Amos with VisualBasic Amos 4.0 User’s Guide
Basic Professional Edition
is installed on your system. The
Visual Basic
files for
this tutorial are
StartVB.vbp
(VB...
... architectures and
some perform optimal on word-level reconfigurable plat-
forms (e.g., FIR filters or FFT algorithms). For the design of
processing architectures for streaming DSP applications, it is
crucial ... application
dependent, for example, 4 às for HiperLAN/2 and 20
milliseconds for DRM.
(iii) The size of the data blocks transported over the edges is
application dependent, for example, 14-bit samples for
a sensor ... demand for streaming communi-
cation and computation for wireless protocol processing and
multimedia applications, but the energy content of batteries
is only increasing 10% per year. Also for high-performance
computing,...
... 10/18/01 11:57 AM Page 16
Visual C# Language
Visual C# Language
■ Topic books forVisual
Basic and Visual C# appear.
ˇ Click the Visual C#
Language book.
■ The Visual C# Language
help screen ... receive the latest information from Microsoft about
Visual Studio, get technical help from fellow Visual Studio
users at Microsoft’s online forum, and search for
information online.
Visual Studio .NET ... Page 18
Form1.cs
Text
Form1.cs
Text
PropertiesProperties
› Type in the new name for
your form.
ˇ Press Enter. ■ The name of the form
changes in the Properties
window and in the form title...
... variance explained for each discrimination function for intermediate
level data fusion.
Principal Component Analysis – EngineeringApplications
20
good. Confusions occur a lot for adulterated ... three times for each sample and the average was obtained for each ten of the
replicated samples. Each
S
frac
data point from each e-nose and e-tongue sensor formed the
S
frac
matrix for further ... 0 0 0 0 47 0 53 100
Table 16. Classification performance for intermediate level data fusion
Principal Component Analysis – EngineeringApplications
2
sensor that mimics the function...
... Load một form, rồi làm việc với nó trước khi Show, trong
trường hợp đó bạn dùng Load Form2 rồi một chập sau dùng Form2.Show.
MDI Form
Đôi khi bạn muốn có một MDI form, tức là một form có thể ... một form con. Để có một MDIForm bạn cần phải dùng menu
command Project | Add MDI Form. Mỗi VB6 project chỉ có thể có tối đa một
MDIform. Muốn một form trở thành một form con bạn set property ... action của form (tức là không cho
User close form) bằng cách set Cancel bằng 1. UnloadMode cho ta biết ai,
task hay form nào muốn close form nầy.
Ngoài ra, bạn cũng nên biết rằng một form tự...
... sure a number is supplied for Age
Chương Bốn - Viết Code
Trong ba chương đầu chúng ta đã học qua ba bộ phận chánh của một chương trình
Visual Basic 6.0. Đó là:
Forms là cái nền hay khung ...
Cái Sub nói trên có chữ Private nằm phía trước, ý nói chỉ nội trong cùng một form
chứa Control CmdEnter (tức là Form1 trong trường hợp nầy) ta mới có thể gọi
(dùng) Sub CmdEnter_Click().
Thí ... this Sub
End If
' Make sure a number is supplied for Age
If Not IsNumeric(txtAge.Text) Then
MsgBox "Please enter a number for Age"
Exit Sub ' Terminate this Sub
End...