« Home « Chủ đề giáo trình C#. lập trình winform với C#

Chủ đề : giáo trình C#. lập trình winform với C#


Có 16+ tài liệu thuộc chủ đề "giáo trình C#. lập trình winform với C#"

Bài tập học Lập trình C

tailieu.vn

cout<<"---\n";. cout<<"Nhap N=". <<setw(17)<<setprecision(2)<<setiosflags(ios::showpoint | ios::fixed). <<kq. cout<< lt;<endl;. //Neu 0<X<=2 thi F(x)=x*x-x. cout<<setiosflags(ios::showpoint|ios::fixed);. cout<<setprecision(2);. cout<<"tien dien: ". <<setprecision(0). cout<<"Nhap % tang K=". cout<<"\n---";. cout<<"\n---\n";. cout<<"\nNhap mang\n";. cout<<"Nhap N=";. cout<<setw(10)<<s[i];. cout <<. <<. i <<. i++)cout <<. a[i] <<. cout<<a[i]<<". cout<<endl;. "<<setw(10)<<b[i];. 0 cout<<". //vong lap i=2->n cout<<". max <<. //in ket qua cout <<. min <<. a[0] <<. a[n-1]...

Manning Windows Forms Programming (phần 1)

tailieu.vn

1 Getting started with Windows Forms 3 2 Getting started with Visual Studio .NET 34. 9 Basic controls 263 10 List controls 314 11 More controls 353 12 A .NET assortment 383 13 Toolbars and tips 410. 18 Odds and ends .NET 603. about this book xxi acknowledgments xxviii about .NET xxx. 2 Getting started with Visual Studio .NET 34....

Manning Windows Forms Programming (phần 2)

tailieu.vn

The compiler uses the correct System.Windows.Forms.But- ton class because of the using keyword, and because the System.Web namespace is not referenced by our program.. Let’s go back to our use of the Button and PictureBox classes. Note the use of the new keyword to initialize our two fields. So typing Alt+L in the application will simulate a click of the...

Manning Windows Forms Programming (phần 3)

tailieu.vn

and to summarize what is displayed in the main window. Chapter 9 on “Basic controls” begins a systematic review of the standard Windows Forms controls available in the .NET Framework. The View menu is exposed, and a submenu of the Image menu item is displayed as well.. of the mouse. Note that context menu items can also contain submenus similar...

Manning Windows Forms Programming (phần 4)

tailieu.vn

S ET THE TEXT TO APPEAR IN THE PANELS. 1 In the menuLoad_Click method, set the ShowPanels property to false while the image is loading.. In the code shown here, the "{0. S ET THE TEXT TO APPEAR IN THE PANELS (continued). The StatusBar class uses a derived version of this class, but the bulk of the drawing information is...

Manning Windows Forms Programming (phần 5)

tailieu.vn

4 Create an empty album at the end of the MainForm constructor.. Set the version number of the MyPhotos application to 6.2.. Multiselect Gets or sets whether the user can select multiple files in the dialog. As we have seen before, a graphic of the current layout for this form is displayed.. A new menuAdd_Click method is added to and...

Manning Windows Forms Programming (phần 6)

tailieu.vn

Since the Form object managed the scrolling, the StatusBar control on the form was caught up in the scroll- ing logic. In the source code, the panel is added using the Control property of the parent form. A private instance is created in the MainForm class, initialized in the Initialize- Component method, and added to the form using the Form.Controls...

Manning Windows Forms Programming (phần 7)

tailieu.vn

Later in this section we will cre- ate some infrastructure that will be useful in our derived forms later in the chapter.. The new class appears in the Solution Explorer window and the BaseEditDlg.cs [Design]. This is not an actual property in the C# sense, and does not appear in the documentation for the Button class. There are five possible...

Manning Windows Forms Programming (phần 8)

tailieu.vn

DisplayMember Gets or sets the property to use when displaying objects in the list control. SelectedIndex Gets or sets the zero-based index of the object selected in the control.. SelectedValue Gets or sets the value of the object selected in the control.. ValueMember Gets or sets the property to use when retrieving the value of an item in the list...

Manning Windows Forms Programming (phần 9)

tailieu.vn

We will add a second TabPage later in the chapter to display the set of dates asso- ciated with the album in a calendar format. In the .NET Framework, this support extends to Windows Forms controls as well.. Use the Events listing in the Properties window, and select the existing methods from the appropriate dropdown lists.. The dropdown calendar is...

Manning Windows Forms Programming (phần 10)

tailieu.vn

Typically, this class is used to support one or more Windows Forms controls in the management and display of images within the control. ColorDepth Gets or sets the color depth for images in the list.. ImageSize Gets or sets the size for images in the list.. TransparentColor Gets or sets the color to treat as transparent in the list’s images.....

Manning Windows Forms Programming (phần 11)

tailieu.vn

of the method.. For our purposes the use of a simple string value in the Tag property was sufficient to display the album’s properties dialog. In the BeginLabelEdit event handler we would make sure the album is valid and can be successfully opened. The code changes required are given in the following steps:. 1 In the MainForm.cs [Design]. Item labels...

Manning Windows Forms Programming (phần 12)

tailieu.vn

1 Set the LabelEdit property for the TreeView control to true in the MainForm.cs [Design]. 2 Handle the KeyDown event for the TreeView control to initiate a label edit when the F2 key is pressed in the tree control.. Also of note is our use of the FindNode method created earlier in the chapter as part of section 15.4.2. 1...

Manning Windows Forms Programming (phần 13)

tailieu.vn

We will discuss the details of these style classes later in the chapter.. AlternatingBackColor Gets or sets the background color to use on every other row in the grid to create a ledger- like appearance.. CaptionText Gets or sets the text to appear in the caption area.. CurrentCell Gets or sets a DataGridCell structure representing the cell in the grid...

Manning Windows Forms Programming (phần 14)

tailieu.vn

Display the caption in the title bar.. This is the default event for this component, so simply double-click the timer in the component tray.. 20 Back in the MainForm class, add a private void menuSlideShow_Click I MPLEMENT THE SLIDE SHOW BEHAVIOR (continued). In the MyPhotos application we display photographs in a Panel control, while in our other applications we use...

Manning Windows Forms Programming (phần 15)

tailieu.vn

typeof Obtains the System.Type object for a given type. using System.Windows.Forms;. In the .NET Frame- work, all exceptions inherit from the System.Exception class. In the .NET Framework, the System.Array class serves as the base class for all array objects. Note that the Length property from the System.Array class determines the number of elements in an array, and the foreach keyword...