...
Bài tập 1II-3
LỰA CHỌN VỚI LISTBOX
Bước 1: Tạo thư mục Basic\ Bt1II-3. Tạo dự án mới VB Standard EXE trong thư mục
trên, sau đó tạo Form có dạng sau:
TT. VisualBasic
Bài tập 2-2 ... 180 * PI
End Function
TT. VisualBasic
Trang 25
Chương 2
LẬP TRÌNH SỰ KIỆN NÂNG CAO
& ĐỒ HỌA TRONG VISUAL BASIC
Mục tiêu:
Chương này gồm các bàitập nhằm mục đích rèn luyện ... tập tin.
- Cách thức truy cập tập tin tu
ần tự.
- Cách thức truy cập tập tin truy xuất ngẫu nhiên.
Kiến thức có liên quan:
Giáo trình Visual Basic, Chương 7.
Tài liệu tham khảo:
- Visual...
... Visual Basic. Net. Trên giao diện chính
form frmMain của ứng dụng, chúng ta khởi tạo các button “Chương”, “Nội dung
bài học chương”, “Câu hỏi bài mới”, “Phiếu học tập , “xem bàitập , “xem bài ... Chương 6. Hidrocacbon không no.
+ Bài 29. Anken.
+ Bài 30. Ankadien.
+ Bài 31. Luyện tập Anken và Ankadien.
+ Bài 32. Ankin.
+ Bài 33. Luyện tập Ankin.
+ Bài 34. Bài thực hành số 4: Điều chế ... dung toán học có bàitập định tính và định lượng.
+ Dựa vào hoạt động của học sinh khi giải phân thành bàitập có hướng dẫn
và bàitập tự giải.
+ Dựa vào nội dung hoá học: Bàitập hoá đại cương...
... Const PI As Double = 3.14159265
Label1.Text = PI
8. Làm việc với toán tử trong VISUAL BASIC. NET
Visual Basic. NET cung cấp các toán tử cơ bản sau:
Toán tử Mô tả
+ Phép cộng
- Phép trừ
* Nhân
/ ... - 6 - Add: cnt-44-dh, VIMARU
Hướng dẫn lập trình VB .NET Chương 5: Biến và toán tử trong vb .net
Chương 5:
Biến và toán tử trong VISUAL BASIC. NET
oOo
Nội dung thảo luận:
- Sử dụng biến để chứa ... VIMARU
Hướng dẫn lập trình VB .NET Chương 5: Biến và toán tử trong vb .net
Như vẫn làm mỗi chương, chúng ta hãy tạo bảng tổng kết các công việc đã làm trong
chương 5.
Bài tập:
- Mô phỏng mô hình máy...
... Add: cnt-44-dh, VIMARU
Hướng dẫn lập trình VB .NET Chương 8: Debug trong chương trình vb .net
Chương 8:
Gỡ lỗi (DEBUG) trong chương trình VISUAL BASIC. NET
oOo
Nội dung thảo luận:
- Các kiểu lỗi ... xem.
Biên soạn: Phạm Đức Lập - 5 - Add: cnt-44-dh, VIMARU
Hướng dẫn lập trình VB .NET Chương 8: Debug trong chương trình vb .net
3. Theo dõi các biến bằng cửa sổ WATCH
Bạn có thể theo dõi các biến bằng ... Hướng dẫn lập trình VB .NET Chương 8: Debug trong chương trình vb .net
4.2. Chuyển sang chế độ command
Cửa sổ command còn cho phép làm việc ở...
... program Demo
Bài 2
Visual Studio .NET
Visual Studio .NET
Để chạy VisualStudio .NET bạn cần phải Set Time của Windows lại trước cuối tháng 7,2001,
eg: 1-July-2001.
Visual Studio .NET Beta 2 ... namespaces liên hệ đến VB6 như Microsoft.Visualbasic.
Thay vì code:
Microsoft.Visualbasic.Left ( InputString,6)
ta tuyên bố:
Imports VB6= Microsoft.Visualbasic
Sau đó ta có thể code:
VB6.Left ...
HƯỚNG DẪN LẬP TRÌNH
VISUAL BASIC .NET
Tác giả
www.vivosoft.com
20
Inherits System.Windows.Forms.Form
Imports System.IO
Imports VB6 = Microsoft.VisualBasic
Public Class Form1...
... Design: Nguyễn Hiền Du
4. Tập hợp controls
Có thể xem tập hợp (collection) như mảng, nó có
thể tự động tăng phần tử hoặc giảm phần tử khi
có yêu cầu.
Tính chất Count của tập hợp Controls báo cho...
... The View tab uses a CrystalReportViewer object on the tab page.
Steps
Open and run the VisualBasic .NET- Chapter 10 solution. Click on the button labeled
How-To 10.4. Clicking on the tabs, ... it more
10.4 Select Whether the Report Will Be Displayed, Printed, or Exported
Using VisualBasic .NET Code
I know I can use the Crystal Report Viewer to print and export my reports, but...
...
course uses Microsoft Visual Basic
®
.NET to teach the .NET Framework.
Only minimal coverage of Web Services, user interfaces, Microsoft ADO
.NET, and Microsoft ASP .NET is provided. Other ... the .NET Software Developer’s
Kit (SDK) and Microsoft Visual Studio
®
.NET provide tools to simplify the
creation of Web Services.
Programming the Microsoft® .NET Framework with VisualBasic ... Microsoft® .NET Framework with VisualBasic .NET (Prerelease)
Read from and write to data streams and files.
Use the basic request/response model to send and receive data over the
Internet....
... with a .NET Framework language such as VisualBasic .NET
Microsoft MSDN
®
Training Course 2559A: Introduction to VisualBasic
.NET Programming with Microsoft .NET will help students gain basic ... applications by using any of the languages supporting the
.NET platform, including the Microsoft Visual Basic
®
.NET and Microsoft
Visual C#
™
.NET development systems.
After completing this module, ... Microsoft Visual Basic
!
An understanding of the Microsoft .NET Framework
!
Experience developing applications
!
Recommended prerequisite course
"
Course 2559A: Introduction to VisualBasic .NET...
... write-only.
In VisualBasic .NET, you must explicitly declare a property as read-only or write-only
using the ReadOnly and WriteOnly keywords (see Table 9.1).
Table 9.1. VisualBasic .NET Property ... properties. VisualBasic .NET also has read-only and write-only
properties, parameterized properties, and default properties.
Read-Only and Write-Only Properties
If you have written classes in Visual ... 9.1 Define a Class in VisualBasic .NET
Before writing code, you should take a moment to decide what data the class needs to...
... constructors varies slightly between VisualBasic and Visual C#.
In Visual Basic, a constructor without parameters is declared this way:
Public Sub New()
End Sub
In Visual C#, the same constructor ... construct known as an indexer in Visual C# or with a default Item method
in Visual Basic.
The complete class definitions for our project are shown here:
‘ VisualBasic
Public Class Book
Public ... instance of a Book.
Dim aBook as Book; ‘ VisualBasic
Book aBook; // Visual C#
When an instance of a class is created through the new operator (New in VisualBasic
and new in C#), memory is allocated...