« Home « Chủ đề thủ thuật .net

Chủ đề : thủ thuật .net


Có 100+ tài liệu thuộc chủ đề "thủ thuật .net"

Visual studio 2010 part 32

tailieu.vn

Create a Web Service. Deploy a Web Service. Write a Client That Consumes the Web Service. A Web service is software that provides functionality that can be used by any other software application, using any programming language, on any hardware and operating system that can communicate over a network.. Examples of private Web services might be the ability for multiple...

Visual studio 2010 part 33

tailieu.vn

314 Microsoft Visual Studio 2010: A Beginner’s Guide. The implementation of CustomerService is similar to what you’ve seen in previous chapters. We’ll soon get to the section of this chapter that shows how to consume a Web service, but you must understand that a Web service is a component that you communicate with over a network. In previous chapters, you’ve...

Visual studio 2010 part 34

tailieu.vn

Verify that your Web site is properly set up, as explained in the preceding section. Any .NET application can communicate with a Web service. In fact, one of the benefits of having a Web service is to expose functionality that can be used by multiple applications.. In practice, the goal of cross-platform communication is an advanced technique accomplished by architects...

Visual studio 2010 part 35

tailieu.vn

I n addition to all the great features you’ve seen in preceding chapters, VS gives you the capabilities to customize your own environment. As you’ve seen in previous chapters, VS helps you get started with new projects and project items by providing default project items and skeleton code. This section will show you how to create your own project and...

Visual studio 2010 part 36

tailieu.vn

including CSharp VisualBasic, Web, and more, each folder corresponding to folders in the VS New Item window. Unlike templates in the local item templates folder, where all you need to do is copy the file, item templates in the global item templates folder don’t automatically show up.. To test the global item templates scenario, you should remove the item template...

Visual studio 2010 part 37

tailieu.vn

The point of interest in the AddNewCustomer method is the firstName and lastName parameters. In the preceding example, firstName is okay because it has a good name in it.. The macro demonstrated in this section will show how to check a string parameter for null, empty, or white space and throw an ArgumentNullException. To create a macro, you will need...

Visual studio 2010 part 38

tailieu.vn

Extending Visual Studio 2010. Create an Add-In with VS. Deploy an Add-In. Taking customization one step beyond macros, this chapter shows you how to extend VS functionality with a software component called an Add-In.. Essentially, an Add-In is a software component that allows you to add new capabilities to VS that haven’t existed before. The Add-In plugs into VS, and...

Visual studio 2010 part 39

tailieu.vn

Implements the Exec method of the IDTCommandTarget. This is called when the command is invoked.. The name of the command to execute.. Describes how the command should be run.. Parameters passed from the caller to the command handler.. Parameters passed from the command handler to the caller.. In the next section, you’ll see how to add your own code to...

Visual studio 2010 part 40

tailieu.vn

Listing A-1 shows an XML document that holds customer data.. Listing A-1 An XML document example. As you can see in Listing A-1, an XML document is readable text. The following sections will decipher Listing A-1 and explain what each part of the document means.. The top of the document in Listing A-1 contains an XML prefix, repeated here for...

Visual studio 2010 part 41

tailieu.vn

You’ll find XAML being used in both Windows Presentation Foundation (WPF) and Silverlight applications. WPF is for desktop application development, and Silverlight is for Web-based development. Both WPF and Silverlight have much in common through programming with XAML. Therefore, this Appendix provides an introduction to XAML and shows you how to perform layouts, which are common to both WPF and...

Dạng bài tập về Micosoft.NET- P1

tailieu.vn

Bài 1 Microsoft .NET Framework ...2. Bài 2 Visual Studio.NET ...13. Bài 3 Những khác biệt giữa VB.NET với VB6 ...37. Bài 4 Những chức năng Đối Tượng mới của VB.NET (phần I)...59. Bài 5 Những chức năng Đối Tượng mới của VB.NET (phần II) ...68. Bài 6 Những chức năng Đối Tượng mới của VB.NET (phần III) ...82. Bài...

Dạng bài tập về Micosoft.NET- P2

tailieu.vn

.NET Framework. Những computers này có thể là Servers, Desktop, Notebook hay Pocket Computers, đều có thể chạy cùng một software dựa trên một platform duy nhất, độc lập với hardware và ngôn ngữ lập trình. Đó là .NET Framework. Nó sẽ trở thành một phần của MS Windows và sẽ được port qua các platform khác, có thể ngay...

Dạng bài tập về Micosoft.NET- P3

tailieu.vn

Nhưng bây giờ .NET dùng một process độc lập để làm việc garbage collection. Sau khi biết qua về .NET, câu hỏi bạn sẽ đặt ra là bạn có nên học lập trình trên .NET hay không. Bạn có thể chọn giữa C# và VB.NET.. Đối với VB6 programmers, học lập trình VB.NET sẽ mất một thời gian, nhưng không...

Dạng bài tập về Micosoft.NET- P4

tailieu.vn

Giao diện của VS.NET có những đặc điểm giống như Delphi và Visual InterDev ở chỗ code được generated tự động, Windows nằm chung thành Tab set hay float khắp nơi, và hổ trợ Solution rất thích hợp cho việc triển khai của cả đội.. Bạn có thể click cây ghim cho nó nằm ngang và vertical Toolbox tab hiện...

Dạng bài tập về Micosoft.NET- P5

tailieu.vn

Các bài tập Microsoft .NET 21. Các bài tập Microsoft .NET 22. Các bài tập Microsoft .NET 23. Các bài tập Microsoft .NET 24. Các bài tập Microsoft .NET 25

Dạng bài tập về Micosoft.NET- P6

tailieu.vn

nhưng vẫn phải biên một tên dài như System.IO.StreamReader để tránh lẫn lộn. Để có thể viết tên class gọn hơn ta dùng Imports như Imports System.IO, sau đó ta chỉ cần viết StreamReader là đủ. Công việc Imports này được gọi là importing Namespace (của System.IO).. Tương tự như thế, để có thể tiếp tục dùng các Functions Left,...

Dạng bài tập về Micosoft.NET- P7

tailieu.vn

ListBox1.MouseDown. ListBox1.Items(ItemIndex). Private Sub ListBox2_DragEnter(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles ListBox2.DragEnter ' Apply the copy effect. Private Sub ListBox2_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles ListBox2.DragDrop Dim LItem As String. ListBox2.Items.Add(LItem). ListBox1.Items.RemoveAt(ListBox1.FindString(LItem)). ListBox2.Items.Clear. For i = 0 To ListBox2.Items.Count - 1 sw.WriteLine(ListBox2.Items(i)) Next

Dạng bài tập về Micosoft.NET- P8

tailieu.vn

Những khác biệt giữa VB.NET với VB6. Dầu vậy, đối với VB6 programmers học VB.NET không khó. Lý do là VB.NET không cho thêm nhiều từ mới (reserved words). Nói chung các ý niệm mới trong VB.NET đều dễ lĩnh hội, nhất là khi đem ra áp dụng cách thực tế. Đó là nhờ Microsoft vẫn giữ nguyên tắc dấu...

Dạng bài tập về Micosoft.NET- P9

tailieu.vn

Cái namespace ta cần sẽ là System.Console. System.Console.WriteLine ("Hello world!"). Nếu ta dùng Import keyword bằng cách nhét vào câu Imports System.Console ở đầu code module, ta có thể code gọn hơn:. Namespace Chức năng Classes điển hình System.IO Đọc/Viết files và các data. System.Drawing Đồ họa Bitmap, Brush, Pen Color, Font, Graphics. System.Data Quản lý data DataSet, DataTable, DataRow,...

Dạng bài tập về Micosoft.NET- P10

tailieu.vn

Trong VB.NET có Option Strict by default. Vì Object có thể chứa bất cứ thứ gì, khi ta muốn dùng nó như một loại data type hay class nào, ta phải đổi Object ra thứ ấy bằng CType, thí dụ:. Dim X As Object X = New Product(). Thay đổi trong cách tuyên bố Variables. Tuyên bố nhiều Variables. Trong...