Manning Windows Forms Programming (phần 1) pdf
... common functionality required by Windows Forms applications. This figure shows the com- plete set of Windows Forms classes derived from the System .Windows. Forms. Common- Dialog class. Common ... first Windows Forms program pro- duces this skeleton form. We'll build on this program throughout the rest of this chapter. xx ABOUT THIS BOOK affectionately known as Windows...
Ngày tải lên: 07/07/2014, 04:20
... begin with the automatic layout of MDI child forms. 16.5.1 A RRANGING MDI FORMS In an MDI application, as well as on the Windows desktop, a number of windows are created and strewn about in various ... MDI child forms. This is used in the LayoutMdi method of the Form class to automatically display a set of forms with the given layout mode. This class is part of the System .Windo...
Ngày tải lên: 07/07/2014, 04:20
... this.pbxPhoto.Anchor = (((System .Windows. Forms. AnchorStyles.Top | System .Windows. Forms. AnchorStyles.Bottom) | System .Windows. Forms. AnchorStyles.Left) | System .Windows. Forms. AnchorStyles.Right); SET ... System.Reflection.AssemblyVersion("1.3")] namespace MyNamespace { using System; using System.Drawing; using System .Windows. Forms; public class MyForm : Sy...
Ngày tải lên: 07/07/2014, 04:20
Manning Windows Forms Programming (phần 3) ppt
... source file is shown here. private System .Windows. Forms. MenuItem menuLoad; private System .Windows. Forms. MenuItem menuItem1; private System .Windows. Forms. MenuItem menuExit; . . . private void ... { . . . this.menuLoad = new System .Windows. Forms. MenuItem(); this.menuItem1 = new System .Windows. Forms. MenuItem(); this.menuExit = new System .Windows. Forms. MenuItem();...
Ngày tải lên: 07/07/2014, 04:20
Manning Windows Forms Programming (phần 4) pptx
... IDisposable interface and is the basis for most classes in the System .Windows. Forms namespace, most objects in the Windows Forms namespace provide a Dispose method for just this purpose. Let’s ... Object methods will come in useful in future chapters. Since they are found in every object, Windows Forms controls make use of these methods whenever an object must be compared with...
Ngày tải lên: 07/07/2014, 04:20
Manning Windows Forms Programming (phần 5) doc
... although the actual windows are quite different. Also of note are the PageSetupDialog and PaintDialog classes. These common dialogs are used when printing from Windows Forms ap- plications, ... distinguished among the dif- ferent types of windows an application may display. In MFC, for example, there is one hierarchy ( CFrameWnd) for framed windows such as MDI windows and contro...
Ngày tải lên: 07/07/2014, 04:20
Manning Windows Forms Programming (phần 6) pps
... this.btnOK = new System .Windows. Forms. Button (); this.btnCancel = new System .Windows. Forms. Button (); this.label1 = new System .Windows. Forms. Label (); this.label2 = new System .Windows. Forms. Label (); ... this.Controls.AddRange(new System .Windows. Forms. Control[] { this.txtCaption, this.lblImage, this.label2, this.label1, this.btnCancel, this.btnOK}); this.FormBor...
Ngày tải lên: 07/07/2014, 04:20
Manning Windows Forms Programming (phần 7) docx
... 339 10.5 Owner-drawn lists 343 10.6 Recap 352 This chapter continues our discussion of the Windows Forms controls available in the .NET Framework. The controls we saw in chapter 9 each presented ... controls added to the Form class in previous chapters. this.panel1.Controls.AddRange(new System .Windows. Forms. Control[] { this.txtPhotographer, this.txtDate, this.txtCaption, this.txt...
Ngày tải lên: 07/07/2014, 04:20
Manning Windows Forms Programming (phần 8) ppsx
... && (!lstPhotos.GetSelected( lstPhotos.Items.Count - 1)) ); btnRemove.Enabled = someSelected; btnPhotoProp.Enabled = (numSelected == 1); } ENABLE MULTIPLE SELECTIONS IN THE LIST BOX (continued) ... can display as a simple text string or a custom graphic. This class is part of the System .Windows. Forms namespace, and inherits from the ListControl class. See .NET Table 10....
Ngày tải lên: 07/07/2014, 04:20
Manning Windows Forms Programming (phần 9) potx
... background, the transparent areas appear purple. This behavior permits Windows icons to appear on the desktop and in file sys- tem windows as if they do not have a border. In fact, all icons are rectangular ... PhotoMenuItem class developed in this section extends the Menu- Item object provided by the Windows Forms namespace. This technique is useful when you need a class that is sim...
Ngày tải lên: 07/07/2014, 04:20