... have written classes inVisualBasic 6, you might be scratching your head,
wondering how the code sample in Listing 9.2 declares your properties read/write. In
Visual Basic 6, all that mattered ...
3. Finally, add a ToString method to output all the data of the class in a string. This is
extraordinarily useful for debugging. Your finished interface should look like
Listing 9.8.
Listing ... by limiting the class to
properties representing the columns in the Customers table and to methods that insert,
delete, and update data.
Technique
Visual Basic .NET has a specific kind of...
... mstrKeyField As String
Public Property DisplayName() As String
End If
End Sub
3. Create the LoadIndividual routine by entering the code shown in Listing 8.18 into
the form. Taking the strKeyValue ... btnSearch, add the code in Listing 8.17 to the Click event. This routine shows
the power of creating custom properties. After instantiating an instance of the
Search form -in this case, frmHowTo8_4b.vb-the ... column in the data row.
Listing 8.18 frmHowTo8_4a.vb: Loading an Individual Record into Text
Boxes on the Form
Private Sub LoadIndividual(ByVal strKeyValue As String)
Dim strSQL As String...
... Microsoft VisualBasic .NET Web site:
ã Preparing Your VB 6 Applications for the Upgrade to VB .NET
ã The Transition from VisualBasic 6.0 to Visual Basic. NET
Taking a Brief Look at the .NET Framework
Microsoft ... release of VisualBasic .NET, you can use even more functions, features, and
tools when creating an application. Even if you’ve been using VisualBasic 5 or Visual
Basic 6, VisualBasic .NET will ... from Windows to the Internet. You can do this by using the new
underlying .NET Framework, which you will read a little about in the first week.
Everything within VisualBasic has been NET enabled,...
... 7
1.7 Internet standards 7
1.8 What is .NET? 9
1.9 Getting started 11
1.10 Using Visual Studio .NET 12
1.11 Using the .NET SDK 16
1.11.1 Compiling with Visual Basic. NET 19
1.11.2 Compiling with ... xix
1 Understanding the Internet and Network Programming 1
1.1 Introduction 1
1.2 Why network programming in .NET? 2
1.3 What can a network program do? 2
1.4 IP addresses 3
1.5 The network stack ...
2
I/O in the .NET Framework
2.1 Introduction
This chapter lays the foundation for virtually every networking example
contained in this book. Without a working knowledge of how .NET han-
dles...
... machine actively refused it.”
As usual, the following assemblies are added:
C#
using System.Threading;
using System .Net;
using System .Net. Sockets;
using System.Text;
using System.IO;
VB .NET
imports ... Socket-level networking in .NET
The following code modifies the above example such that it does not
become unresponsive when waiting for incoming requests or data. Reopen
the previous example inVisual ... Nothing
End Sub
As before, add the namespace references to the head of the code:
C#
using System.Threading;
using System .Net;
using System .Net. Sockets;
using System.Text;
using System.IO;
VB .NET
imports...
... 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
/ ... 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 dữ liệu của chương trình
- Nhận dữ liệu nhập bằng cách sử dụng hàm InputBox
- ... dẫn lập trình VB .NET Chương 5: Biến và toán tử trong vb .net
- Tạo thủ tục ListBox1_SelectedIndexChanged để hiện thông tin trên TextBox1
như sau:
Select Case ListBox1.SelectedIndex
Case 0
TextBox1.Text...
... 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 ... co lỗi nào phát sinh không đồng thời khắc phục thử 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 ... (breakpoint) và chuyển
chương trình sang chế độ ngắt để kiểm tra lỗi.
Biên soạn: Phạm Đức Lập - 1 - 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
Bạn...
... 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 ( InputString,6)
Dùng ... 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 hiện ... nguyên một Window set đi. Nắm
Window Tab của một Window set để kéo chỉ một Window ra. Bạn có thể để chồng hai Windows
lại với nhau bằng cách nắm Tittle bar của một Window để chồng lên một Window...
...
+ Điểm thuận lợi của Visual Basic. Net:
-Visual Basic. Net hỗ trợ các cấu tử lớp, mang tính thừa kế thực thi, tính đa
thể cổ điển, và quá tử phương pháp.
-Visual Basic. Net cho phép các nhà lập ... TẮT
CNTT : công nghệ thông tin
GV : giáo viên
HS : học sinh
VB .Net : Visual Basic. Net
ICT : information and communication technology – Công
nghệ thông tin và truyền thông
PP : phương ... bằng phần
mềm Access và VisualBasic sẽ trình bày cụ thể trong chương 2.
cùng với Visual C#, Visual C++, Visual J# hợp thành ngôn ngữ lập trình mới Visual
Studio .Net.
+ Chương trình hay...
... Document into the Items collection of lstExportType.
6. Add the code in Listing 10.1 to the Click event of btnPrint.
Listing 10.1 frmHowTo10_4.vb: Printing the Report
Private Sub btnPrint_Click(ByVal ... comes to letting your users work with
reports.
The first tab, Print, allows you to specify the number of copies to print, along with the
starting and ending pages.
Printing Using the Report ... the VisualBasic .NET- Chapter 10 solution. Click on the button labeled
How-To 10.4. Clicking on the tabs, you can see the three options you have to work with.
Clicking on the Print button prints...
...
the Internet.
For more information on UDDI, see Web Service Discovery in Module 13,
“Remoting and Web Services,” in Course 2415A, Programming the Microsoft
.NET Framework with VisualBasic .NET ... Windows
đ
CE.
Application Services
When running on Windows 2000, application services, such as COM+,
Message Queuing, Windows Internet Information Server (IIS), and Windows
Management Instrumentation ... Module 6, “Working with Types,” in Course 2415A,
Programming the Microsoft .NET Framework with VisualBasic .NET
(Prerelease). Specific classes are covered in Module 7, “Strings, Arrays,
and...