windows form microsoft net framework phần 2

Tài liệu Windows Form Microsoft .NET Framework phần 2 pdf

Tài liệu Windows Form Microsoft .NET Framework phần 2 pdf

Ngày tải lên : 23/12/2013, 20:15
... Dưới đây là phần mã cho form con: public class MDIChild : System .Windows. Forms .Form { private System .Windows. Forms.Button cmdShowAllWindows; private System .Windows. Forms.Label label; ... key.SetValue("Top", form. Top); } public void ApplySettings(System .Windows. Forms .Form form) { form. Height = (int)key.GetValue("Height", form. Height); form. Width = (int)key.GetValue("Width", ... đây vào bất kỳ form nào. Đoạn mã này sẽ lưu các thuộc tính của form khi form đóng và phục hồi chúng khi form được nạp. private FormSettingStore formSettings; private void Form1 _Load(object...
  • 8
  • 406
  • 0
Tài liệu Windows Form Microsoft .NET Framework phần 1 doc

Tài liệu Windows Form Microsoft .NET Framework phần 1 doc

Ngày tải lên : 23/12/2013, 20:15
... vết hai form: public class OpenForms { public static Form MainForm; public static Form SecondaryForm; } MessageBox.Show(info, "File Information"); } } Hình 6 .2 Lưu ... trong một MessageBox (xem hình 6 .2) . using System; using System .Windows. Forms; using System.IO; public class TagPropertyExample : System .Windows. Forms .Form ( // (Bỏ qua phần mã designer.) ... sách các CheckBox được-tạo-động using System; using System .Windows. Forms; public class DynamicCheckBox : System .Windows. Forms .Form { // (Bỏ qua phần mã designer.) The image part with...
  • 6
  • 458
  • 2
Tài liệu Windows Form Microsoft .NET Framework phần 3 docx

Tài liệu Windows Form Microsoft .NET Framework phần 3 docx

Ngày tải lên : 23/12/2013, 20:15
... xếp danh sách dựa trên cột đó. using System; using System .Windows. Forms; public class ListViewItemSort : System .Windows. Forms .Form { // (Bỏ qua phần mã designer.) ... System .Windows. Forms.ColumnClickEventArgs e) { ListViewItemComparer sorter = new ListViewItemComparer(e.Column); ListView1.ListViewItemSorter = sorter; ListView1.Sort(); } } 1 .2 Liên ... thay vì so sánh theo thứ tự alphabet. using System; using System.Collections; using System .Windows. Forms; public class ListViewItemComparer : IComparer { private int column; private...
  • 7
  • 420
  • 0
Tài liệu Windows Form Microsoft .NET Framework phần 4 doc

Tài liệu Windows Form Microsoft .NET Framework phần 4 doc

Ngày tải lên : 23/12/2013, 20:15
... System; using System .Windows. Forms; using System.Threading; using System.Globalization; public class MultiLingualForm : System .Windows. Forms .Form { private System .Windows. Forms.Label label1; ... Dưới đây là phần mã hoàn chỉ nh cho form: using System; using System .Windows. Forms; using System.Drawing; public class DragForm : System .Windows. Forms .Form { // (Bỏ qua phần mã designer.) ... the event handler for Exit."); } } 1 .2 Tạo form đa ngôn ngữ V V Bạn cần tạo một form có thể bản địa hóa (localizable form) ; nghĩa là form này có thể được triển khai ở nhiều ngôn...
  • 12
  • 546
  • 0
Tài liệu Windows Form Microsoft .NET Framework phần cuối docx

Tài liệu Windows Form Microsoft .NET Framework phần cuối docx

Ngày tải lên : 23/12/2013, 20:15
... Studio .NET hiển thị theo phong cách Windows XP bằng cách thêm file devenv.exe.manifest vào thư mục \Program Files \Microsoft Visual Studio .NET 20 03\Common7\IDE. Hình 6.14 Phong cách Windows ... này. Trong .NET Framework phiên bản 1.0, bạn phải tạo một file manifest. Còn trong .NET Framework phiên bản 1.1, bạn chỉ cần gọi phương thức Application.EnableVisualStyles. Phong cách Windows ... thường với nội dung XML) sẽ báo với Windows XP rằng ứng dụng của bạn yêu cầu phiên bản mới của file comctl 32. dll (file này có trên tất cả các máy tính Windows XP). Windows XP sẽ đọc và áp dụng các...
  • 7
  • 402
  • 0
Cơ sở dữ liệu Trong Microsoft .NET Framework phần 4

Cơ sở dữ liệu Trong Microsoft .NET Framework phần 4

Ngày tải lên : 17/10/2013, 17:15
... Hộp thoại Add New Item 2. Chọn Data Form Wizard, và giữ nguyên tên mặc định DataForm1.cs. Nhắp Open để thêm Data Form Wizard vào dự án. Ngay khi bạn nhắp Open, Data Form Wizard sẽ khởi chạy. ... DataForm1.vb 11. Cuối cùng, bạn phải báo cho ứng dụng biết form Data Form Wizard sẽ là đối tượng startup. Nhắp phải vào dự án trong Solution Explorer, và chọn Properties. Chọn DataFormWiz.DataForm1 ... thiết lập mặc định (xem hình 10. 12) . Nhắp Finish để kết thúc trình thuật sĩ. Sau vài giây, DataForm mới sẽ được kết sinh và hiển thị (xem hình 10.13). Hình 10. 12 Giữ nguyên các thiết lập hiển...
  • 8
  • 652
  • 1
Cơ sở dữ liệu Trong Microsoft .NET Framework phần cuối

Cơ sở dữ liệu Trong Microsoft .NET Framework phần cuối

Ngày tải lên : 20/10/2013, 07:15
... báo cáo này trên form. Crystal Reports for Visual Studio .NET là công cụ báo cáo chuẩn dành cho Visual Studio .NET. Bạn có thể tiếp quản những báo cáo này trên nền Web và Windows, và phân bổ ... Report (xem hình 10 .25 ). Hình 10 .25 Gõ tiêu đề Category - Product Report 10. Nhắp Finish. File CrystalReport1.rpt (xem hình 10 .26 ) sẽ được thêm vào dự án. Hình 10 .26 Bản báo cáo đã được ... image part with relationship ID rId11 was not fo und in the file. Hình 10 .28 Form báo cáo hoàn chỉnh Hình 10 .29 Trình bày báo cáo với Crystal Report Như bạn có thể thấy, điều kiểm CrystalReportViewer...
  • 8
  • 439
  • 0
Dịch vụ Web XML và Remoting Microsoft .NET Framework phần 1

Dịch vụ Web XML và Remoting Microsoft .NET Framework phần 1

Ngày tải lên : 07/11/2013, 05:15
... 12. 1).  Sử dụng kỹ thuật caching để nâng cao hiệu năng và khả năng phục vụ (tính quy mô) của dịch vụ Web XML (mục 12. 2 và 12. 3).  Tạo phương thức giao dịch cho dịch vụ Web XML (mục 12. 4). ... Chương 12 : Dịch vụ Web XML và Remoting Microsoft .NET Framework hỗ trợ hai mô hình lập trình phân tán cấp cao là Remoting và ... của các đối tượng khả-truy-xuất-từ-xa (mục 12. 11 và 12. 12) .  Hiện thực các phương thức một chiều trong các đối tượng khả-truy-xuất-từ-xa (mục 12. 13). # Chương này chỉ đưa ra một số kỹ thuật...
  • 8
  • 428
  • 1
Tài liệu Using the Data Form Wizard to Create a Windows Form phần 2 doc

Tài liệu Using the Data Form Wizard to Create a Windows Form phần 2 doc

Ngày tải lên : 24/12/2013, 01:17
... MyDataForm : System .Windows. Forms .Form { public static void Main() { Application.Run(new MyDataForm()); } This code creates a new object of the MyDataForm class, causing your form ... property, as shown in Figure 6 .29 . Figure 6 .29 : Setting the ConnectionString property You're now ready to run your form. Running the Form To run your form, select Debug ➣ Start without ... 6 .25 shows the completed dialog box. Figure 6 .25 : Choosing the display style 10. You've now completed all the steps in the Data Form Wizard. Click the Finish button to create your form. ...
  • 7
  • 444
  • 0
Developing a Simple Windows Application phần 2

Developing a Simple Windows Application phần 2

Ngày tải lên : 20/10/2013, 10:15
... the Form1 class. Next, you'll be introduced to the other types of Windows controls. } } } As you can see, the Form1 class is derived from the System .Windows. Forms .Form ... System .Windows. Forms .Form class. The Form class represents a Windows form. Note The System .Windows. Forms namespace contains the various classes for creating Windows applications. Most of the ... System.Drawing.Size(304, 23 7); this.Controls.AddRange(new System .Windows. Forms.Control[] { this.myButton, this.myLabel}); this.Name = " ;Form1 "; this.Text = "My Form& quot;; this.ResumeLayout(false);...
  • 7
  • 304
  • 0
Developing Your First ADO.NET phần 2

Developing Your First ADO.NET phần 2

Ngày tải lên : 24/10/2013, 08:15
... exceptions. For more details on handling exceptions, I recommend the book Mastering Visual C# .NET from Sybex (20 02) . In the next section you'll see how to compile FirstExample.cs and run it. Compiling ... selecting Start ➣ Programs ➣ Accessories ➣ Command Prompt. Note If you're using Windows XP rather than Windows 20 00, start the Command Prompt tool by selecting Start ➣ All Programs ➣ Accessories ... press the Enter key: C: Next, to move to the ADO .NET\ book\ch01\programs directory, you enter cd followed by ADO .NET\ book\ch01\programs: cd ADO .NET\ book\ch01\programs To compile FirstExample.cs...
  • 5
  • 393
  • 0

Xem thêm