... Double click vào button Tính (btnTinh), một cửa sổ soạn thảo xuất hiện với nội dung như sau: Chú ý: Cửa sổ này là Form1.cs tương ứng với Form1.cs[Design] Phương thức btnTinh_Click được phát sinh ... phần Program.cs giống trong ứng dụng Console Application và còn có một thành phần mới là Form1.cs đang ở chế độ Design với giao diện như sau: Chú ý cửa sổ Toolbox chứa các công cụ để thiết kế: ... double click vào btnTinh Ta định nghĩa cho lớp này như sau: Trang 7Tiếp theo ta xử lý sự kiện click chuột cho button btnThoat Quay lại Form1.cs[Design], double click lên button Thoát, Form1.cs có
Ngày tải lên: 17/11/2014, 13:51
... (parent form), cửa sổ (child form) có form bình thường khác – Các cửa sổ nằm giới hạn cửa sổ cha Khi đóng cửa sổ cha, tất cửa sổ đóng Ứng dụng MDI • Tạo parent form: tạo form thiết lập thuộc tính ... thi chức Giới thiệu Ứng dụng Windows Form • Các ứng dụng Windows Form ứng dụng GUI thực thi máy local • Vai trò Windows Forms: – – – – Chứa điều khiển Xử lý liệu user nhập Hiển thị thông tin Kết ... thị Form – Mặc định, điều khiển Form sử dụng font thiết lập cho Form 2.1 Form Thuộc tính • Size - Chiều rộng chiều cao Form (pixel) • AcceptButton: Nút lệnh nhấn user ấn phím Enter • CancelButton:
Ngày tải lên: 20/04/2017, 22:32
Windows Phone Programming in C# doc
... contain much code: using using using using using using using using using using using using System; System.Collections.Generic; System.Linq; System.Net; System .Windows; System .Windows. Controls; ... touch screen works in a different way. An array of conductors underneath the screen surface detects the change in capacitance caused by the presence of a finger on the surface. The touch screen ... because of a number of things: Firstly, clock speed is not directly comparable between processors. The processor in the Windows PC might take five clock ticks to do something that the Windows
Ngày tải lên: 17/03/2014, 13:20
Windows Phone Programming in C# pptx
... Application Switching on Windows Phone 16 Background Processing 16 Windows Phone and Managed Code 16 1.4 Windows Phone application development 18 The Windows Phone Emulator 19 Accessing Windows Phone ... Windows Phone Programming in C# Rob Miles Windows Phone Version 7.5 i Contents 1 Windows Phone 7 1.1 The Windows Phone Platform 7 A Windows Phone as a Computer 7 The Windows ... comparable between processors. The processor in the Windows PC might take five clock ticks to do something that the Windows Phone processor needs ten ticks to perform. The Windows PC processor might
Ngày tải lên: 23/03/2014, 22:21
Sams Teach Yourself Database Programming with Visual C++ 6 in 21 Days phần 1 potx
... teach database programming to intermediate-level C++ Windows developers. If you already know something about C++ Windows programming and want to expand your skills to include database programming, ... http://www.simpopdf.com Chapter 13 Melding Object-Oriented Programming with Relational Databases Chapter 14 Legacy Database APIs Week 2 in Review Week 3 at a Glance Chapter 15 The ODBC API and the MFC ODBC Classes ... like. In terms of operating systems, Windows NT 4.0 makes an excellent platform running MTS and IIS. You probably could make do with Windows 98 instead of Windows NT as long as your machine has
Ngày tải lên: 13/08/2014, 08:20
Sams Teach Yourself Database Programming with Visual C++ 6 in 21 Days phần 2 docx
... http://www.simpopdf.com 4: CoCreateInstance(CLSID_CADOConnection, NULL,CLSCTX_INPROC_SERVER, IID_IADOConnection, (LPVOID *)&piConnection); 5: 6: CoCreateInstance(CLSID_CADOCommand, NULL,CLSCTX_INPROC_SERVER, ... void CADOMFC1View::OnCommandOrderedsincedate() { _CommandPtr pCommand; pCommand.CreateInstance( uuidof( Command )); CADOMFC1Doc * pDoc; pDoc = GetDocument(); try { pCommand->ActiveConnection ... uuidof( Connection )); pCommand.CreateInstance( uuidof( Command )); pConnection->Open(L"MyDSN", L"sa", L"bodacious"); pCommand->ActiveConnection = pConnection; In Listing 4.2, lines and define instances
Ngày tải lên: 13/08/2014, 08:20
Sams Teach Yourself Database Programming with Visual C++ 6 in 21 Days phần 3 potx
... unions, in which the data structure can vary from element to element. Each column must have a unique name. Each field in each record must contain a single value, meaning it must describe a single ... price in the ProductsPurchased table. You might be able to obtain the price by using the product number and looking up the price in the Products table. However, the price in the ProductsPurchased ... consider using a stored procedure called from an ADO Command object. The only caveat for ADO Command objects seems to be that the process of changing parameter values in the Parameters collection
Ngày tải lên: 13/08/2014, 08:20
Sams Teach Yourself Database Programming with Visual C++ 6 in 21 Days phần 4 pps
... implemented in every COM server. The class factory implements the IClassFactory interface, which includes the CreateInstance function. COM can call the CreateInstance function to create COM objects (instances ... http://www.simpopdf.com Listing 9.5 will produce this output: Executing myFunc in myBaseClass Executing myFunc in myDerivedClass Executing myFunc in myBaseClass Executing myFunc in myDerivedClass Which class's ... abstract base classes that applications use to declare COM components are called COM interfaces. COM clients call Windows API functions to create instances of the (server) component classes. COM clients
Ngày tải lên: 13/08/2014, 08:20
Sams Teach Yourself Database Programming with Visual C++ 6 in 21 Days phần 5 docx
... records, using the code in lines 37 through 58 The user can edit the records' contents in the grid The user can cancel those changes by clicking the Cancel button, which executes the code in lines ... interprocess communication (IPC) connection with the database The interprocess communication mechanism is Teach Yourself Database Programming with Visual C++ 6 in 21 days Day 11-Multitier Architectures ... Figure 11.3, fat clients contain business logic This business logic may include code for formulas or rules to perform calculations on business data, or it may include code that accesses tables and
Ngày tải lên: 13/08/2014, 08:21
Sams Teach Yourself Database Programming with Visual C++ 6 in 21 Days phần 6 pps
... the cache instead of the database. Using a cache provides significant performance benefits because accessing data in RAM is much faster than accessing data in a database. A cache can also reduce ... application by using the ODBC API. NOTE Although this section introduces certain steps in developing an ODBC application, it isn't intended to be a complete reference. Many ODBC programming ... 1-Must support all core-level compliance, as well as dialog-based connectivity, and be able to obtain driver/datasource information, which includes advanced connections using get and set options.
Ngày tải lên: 13/08/2014, 08:21
Sams Teach Yourself Database Programming with Visual C++ 6 in 21 Days phần 7 ppsx
... Accessing a Data Source with OLE DB }; Simpo... #define UNICODE #define _UNICODE // Standard Application Includes #include #include #include #include #include // OLE DB Header Files #include ... DataSource Object The IDBCreateSession Interface❍ The IDBDataSourceAdmin Interface❍ The IDBInfo Interface❍ The IPersist Interface❍ The IPersistFile Interface❍ ● Connecting to a DataSource Object ... handle. Line 14 calls SQLAllocConnect to instruct the ODBC driver manager to allocate variables to manage a connection and to obtain a connection handle. Line 17 calls SQLDriverConnect to make a connection,
Ngày tải lên: 13/08/2014, 08:21
Sams Teach Yourself Database Programming with Visual C++ 6 in 21 Days phần 8 ppt
... 50-character string StateOrProvince 20-character string PostalCode 20-character string Country 50-character string ContactTitle 50-character string PhoneNumber 30-character string Extension 30-character ... Long integer CompanyName 50-character string ContactFirstName 30-character string ContactLastName 50-character string CompanyOrDepartment 50-character string BillingAddress 255-character string City ... DBACCESSORFLAGS dwAccessorFlags, ULONG cBindings, const DBBINDING rgBindings[], ULONG cbRowSize, HACCESSOR * phAccessor, DBBINDSTATUS rgStatus[]); HRESULT GetBindings(HACCESSOR hAccessor, DBACCESSORFLAGS
Ngày tải lên: 13/08/2014, 08:21
Sams Teach Yourself Database Programming with Visual C++ 6 in 21 Days phần 9 ppsx
... pRowset->QueryInterface(IID_Accessor, (void **) &pAccessor); 41: 42: // Create an Accessor, Using the Binding Information 43: pAccessor->CreateAccessor(DBACCESSOR_ROWDATA, // A Row 44: 1, // 1 Column 45: pBinding, ... BLOB column by using the OLE streaming interfaces. Day 20 covers these interfaces in more detail, including how to use them to access BLOB columns. Unicode String Processing Unicode strings are ... pDBColumnInfo[j].bPrecision; 36: // Use the ColumnInfo Structure to Get the Column Scale 37: pBindings[0].bScale = pDBColumnInfo[j].bScale; 38: 39: // Obtain Accessor Interface 40: pRowset->QueryInterface(IID_Accessor,
Ngày tải lên: 13/08/2014, 08:21
Sams Teach Yourself Database Programming with Visual C++ 6 in 21 Days phần 10 potx
... available, use the CreateInstance method of the IClassFactory interface to create a new IErrorInfo interface. 2. Fill in the ERRORINFO structure with the appropriate information.3. Obtain access to the ... ISQLErrorInfo Interface The final error-related interface covered today is the ISQLErrorInfo interface. This interface is used in the custom error object pointer of an error record. You access the ... for each error record and uses that IErrorInfo interface to access the error description, source, and GUID. The GetCustomErrorObject is accessed for each record. If a ISQLErrorInfo interface is
Ngày tải lên: 13/08/2014, 08:21
Pro .NET 2.0 Windows Forms and Custom Controls in C#
... custom control project. You’ll then continue to create user controls, which combine other controls into reusable groups (Chapter 10); derived controls, which enhance existing .NET control classes ... displaying and updating data without writing tedious code). Part 2: Custom Controls In this part, you’ll tackle one of the most important areas of Windows Forms design—creating customized controls ... this type of scattered user interface coding to a more elegant approach, you need to stop thinking in terms of windows and controls and start looking at a user interface as an entire interrelated...
Ngày tải lên: 19/10/2013, 21:15
Tài liệu Programming Microsoft Windows with C# pptx
... using the C programming language to access the Windows application programming interface (API). Although it was also possible to access the Windows API using Microsoft Pascal, this approach ... been working on this book, it has become my preferred approach to Windows programming. Programmatically speaking, both the MFC and Windows Forms interfaces work by making calls to the Windows ... book begins with four introductory chapters. Starting with Chapter 5 (which shows you how to draw lines and curves) and continuing through Chapter 24 (on the Windows clipboard), the chapters...
Ngày tải lên: 10/12/2013, 14:16
Tài liệu Programming with XML in the pdf
... Serializing Objects as XML 47 Course Evaluation 63 Programming with XML in the Microsoftđ .NET Framework ix Trainer Materials Compact Disc Contents The Trainer Materials compact disc contains ... 2071, Querying Microsoft SQL Server 2000 with Transact-SQL Course 2373, Programming with Microsoft Visual Basic .NET, or Course 2124, Programming with C# After completing this course, students ... Programming with XML in the Microsoftđ .NET Framework iii Contents Introduction Course Materials 2 Prerequisites 3 Course Outline 4 Setup 6 Microsoft Official Curriculum 7 Microsoft...
Ngày tải lên: 24/01/2014, 09:20