... exceptions thrown by the CLR DONG NAI UNIVERSITY OF TECHNOLOGY try Block try { //Code that may cause Exception } DONG NAI UNIVERSITY OF TECHNOLOGY try catch Block {//code that may cause exception ... the switch statement DONG NAI UNIVERSITY OF TECHNOLOGY switch Multiple-Selection Structure true case : a case a action(s) break; case b action(s) break; case z action(s) break; false true c...
... (object sender, EventArgs e) { radRed.CheckedChanged += rad_CheckedChanged; radGreen.CheckedChanged += rad_CheckedChanged; radBlue.CheckedChanged += rad_CheckedChanged; } private void rad_CheckedChanged ... from Control.) DONG NAI UNIVERSITY OF TECHNOLOGY Name MouseClick Description Occurs when the control is clicked by the mouse (Inherited from Control.) MouseDouble Occurs when the control...
... Initializes a new instance of the ArrayList class (ICollection) that contains elements copied from the specified collection and that has the same initial capacity as the number of elements copied ArrayList ... NAI UNIVERSITY OF TECHNOLOGY ArrayList Class Implements the IList interface using an array whose size is dynamically increased as required DONG NAI UNIVERSITY OF TECHNOLOGY Constru...
... public abstract void doSomething(); } Methods DONG NAI UNIVERSITY OF TECHNOLOGY public class CProduct : CAbstractProduct { private double m_dPrice; public CProduct() { } public double Price { ... DONG NAI UNIVERSITY OF TECHNOLOGY How to create Class DONG NAI UNIVERSITY OF TECHNOLOGY Class Name Constructors Attributes Properties Methods DONG NAI UNIVERSITY OF TECHNOLOGY public abstract...
... DONG NAI UNIVERSITY OF TECHNOLOGY String Methods Name public string Replace( char oldChar, char newChar ) Description Returns a new string in which all occurrences of a specified Unicode character ... instance are replaced with another specified Unicode character DONG NAI UNIVERSITY OF TECHNOLOGY String Methods Example string str = "Ch c em h c tốt"; str = str.Replace(' ','#'); str =...
... gửi cho giảng viên theo yêu cầu DONG NAI UNIVERSITY OF TECHNOLOGY Các hành vi tuyệt đối nghiêm cấm lớp học Ngủ gật Cờ bạc X X DONG NAI UNIVERSITY OF TECHNOLOGY Điện thoại X Đánh X DONG NAI UNIVERSITY ... diện với WPF Net Remoting Lý Thực thuyết hành 3 9 30 DONG NAI UNIVERSITY OF TECHNOLOGY cột điểm Sinh viên phải hoàn tất: - Điểm thường kỳ: Average (bài tập Topics) - Điểm Giữa kỳ:...
... cldlg= new ColorDialog(); cldlg.Color = pnColor.BackColor; if(cldlg.ShowDialog()==DialogResult.OK) pnColor.BackColor = cldlg.Color; } DONG NAI UNIVERSITY OF TECHNOLOGY If you want to set color by ... DONG NAI UNIVERSITY OF TECHNOLOGY ColorDialog pnColor btnColor How to use ColorDialog? DONG NAI UNIVERSITY OF TECHNOLOGY private void btnColor_Click (object sender, EventArgs e) { ColorDial...
... dDelta; numbers decimal Monetary values 12 8 28 significant figures decimal decKe; string Sequence of characters 16 bits per character Not applicable string strName; char Single character 16 through ... unchecked case extern long sealed unsafe catch false namespace short ushort char finally new sizeof using checked fixed public true null class float object const for operator foreach out de...
... OF TECHNOLOGY How to process Items Checked??? Case 1: CheckedListBox.CheckedIndexCollection indexCollection = chklbLeft.CheckedIndices; string strChecked = ""; foreach (int i in indexCollection) ... process_MenuClick; menuEditCut.Click += process_MenuClick; menuEditCopy.Click += process_MenuClick; menuEditPaste.Click += process_MenuClick; } DONG NAI UNIVERSITY OF TECHNOLOGY private void pro...
... DONG NAI UNIVERSITY OF TECHNOLOGY We could use Indices ListView.SelectedIndexCollection indices = lvDataDn.SelectedIndices; foreach (int index in indices) { //Process Index here } DONG NAI UNIVERSITY ... lvDataDn.Items.Add(itemID); } DONG NAI UNIVERSITY OF TECHNOLOGY private void btnRemove_Click (object sender, EventArgs e) {ListView SelectedListViewItemCollection list = lvDataDn.Select...
... 18 CẤU TRÚC DỮ LIỆU VÀ GIẢI THUẬT Minh Họa Thuật Toán j 12 15 i 19 CẤU TRÚC DỮ LIỆU VÀ GIẢI THUẬT Minh Họa Thuật Toán 8 12 15 20 CẤU TRÚC DỮ LIỆU VÀ GIẢI THUẬT Độ Phức Tạp Của Thuật Toán 21 CẤU ... j =3 43 CẤU TRÚC DỮ LIỆU VÀ GIẢI THUẬT Nổi Bọt – Bubble Sort i=2 j=5 j=4 i=2 i =3 j=6 44 CẤU TRÚC DỮ LIỆU VÀ GIẢI THUẬT Nổi Bọt – Bubble Sort i =3 j=5 i=4 j=6 i=5 45 CẤU TRÚC DỮ LIỆU VÀ G...
... flowchart So sánh đánh giá Tổng quan Phát biểu điều khiển: dòng lệnh dùng để điều khiển hoạt động chương trình Các phát biểu điều khiển Phát biểu gán (assignment statement) Các phát biểu điều khiển ... biểu lặp REPEAT Phát biểu lặp FOR Phát biểu GOTO Phát biểu gọi thủ tục (procedure call): gọi chương trình loại procedure Phát biểu WITH : dùng với kiểu liệu record Phát biểu ghép...
... document 30 DONG NAI UNIVERSITY OF TECHNOLOGY 2.4 Parsing XML by SAX 31 DONG NAI UNIVERSITY OF TECHNOLOGY 2.4 Parsing XML by SAX 32 DONG NAI UNIVERSITY OF TECHNOLOGY 2.4 Parsing XML by SAX 33 DONG NAI ... Preferences 37 DONG NAI UNIVERSITY OF TECHNOLOGY 3. 1 Creating and Saving Preferences 38 DONG NAI UNIVERSITY OF TECHNOLOGY 3. 1 Creating and Saving Preferences 39 DONG...
... DONG NAI UNIVERSITY OF TECHNOLOGY Subject introduction 1. 1 Topics 1. 2 Learning Objectives 1. 3 Textbooks 1. 4 Test / Grade 1. 5 Assignments 1. 6 Rules DONG NAI UNIVERSITY OF TECHNOLOGY 1. 1 Topics ... Oct.2009 49 DONG NAI UNIVERSITY OF TECHNOLOGY 4.3 Background History Nov.2 012 Jul.2 012 Oct.2 011 Feb.2 011 50 DONG NAI UNIVERSITY OF TECHNOLOGY 4.3 Background History 24 July...