.


:




:

































 

 

 

 





: . , . , "". :
  • (Label),
  • (Button),
  • (ComboBox),
  • (TextBox),
  • (GroupBox),
  • (ListBox),
  • (RadioButton).
. 22.1. . 22.1. : ### (Toolbox), - ###. (DataGridView) "". " " (Data Sources),   "". "DataGridView" (. 22.2). . 22.2. "" " " . (. 22.3): . 22.3. , , "". (. 22.4). . 22.4. . . :
  • FormBorderStyle ( ): Fixed3D;
  • MaximizeBox ( ): False;
  • MinimizeBox ( ): False;
  • Text ( ): "" ( ).
(Label1, Label2, Label3 Label4) :
  • AutoSize (): False;
  • Text ( ): " "" ( )", " ", ":" "" ( Label1, Label2, Label3 Label4).
Label1 :
  • Font (): Microsoft Sans Serif, 14;
  • ForeColor ( ): ;
  • TextAlign ( ): MiddleCenter.
: "", "", " ", "" "" ( Button1, Button2,Button3, Button4 Button5). "" (Button1). ( Text) "". ( RadioButton1 RadioButton2) " " " ", " " (RadioButton1) Checked () True (). (ListBox1) , . 22.5, "Ok". . 22.5. , . ,   . "Edit columns" (. 22.6). . 22.6. "Edit Columns" (. 22.7). . 22.7. "Edit Columns" " " " ", "Remove" (). . 22.7. , "Ok". . . "Use Data Bound Items". "Data Source" "Other Data Sources\Project Data Sources\StudentsDataSet\", "Display Member" "". (. 22.8). . 22.8. . "BindingSource1", (. 22.9). . 22.9. (. 22.10): . 22.10. .

"", (ListBox1). . , (ListBox1_SelectedIndexChanged). "" (Button1): Button1.Enabled = True (. 22.11).



. 22.11.

"". "". "Button1_Click", . , . 22.12.



. 22.12.

:

  • Dim Col As System.Windows.Forms.DataGridViewColumn Col ;
  • Select CaseEnd Select, Col (ListBox1.SelectedIndex). , Col DataGridViewTextBoxColumn2, , - DataGridViewTextBoxColumn3 . , , . "" DataGridViewTextBoxColumn2, DataGridViewTextBoxColumn1 ;
  • IfEnd If : " " (RadioButton1), Col (DataGridView.Sort (Col, System.ComponentModel.ListSortDirection. Ascending)), (DataGridView.Sort (Col, System. ComponentModel.ListSortDirection. Descending)).

"" (Button2). "" "Button2_Click" : BindingSource.Filter = "='" & ComboBox1.Text & "'" (. 22.13).



. 22.13.

: BindingSource Filter (. 22.13), . : "< ><>'<>'". "" , (ComboBox1.Text) (. 22.13).

" ", . . Button3_Click. BindingSource.Filter = "" (. 22.14).



. 22.14.

, "Filter" (""), (. 22.14).

. "". "Button4_Click" (. 22.15).



. 22.15.

. :

  • For i=0..Next i. . , ;
  • For i=0..Next i. , (TextBox1), , .

"". "Button5_Click" "Me.Close()", (. 22.16).



. 22.16.

, "", . "" (Form4) , . 22.17. . 22.17. ( Text), "". (. 22.18): . 22.18. "" (Form6). "" "Button8_Click" "Form6.Show" (. 22.19). . 22.19. . " """. , "" "". (. 22.20). . 22.20. , , , . . , (Solution Explorer) (. 22.21): . 22.21. .

 





:


: 2015-10-19; !; : 899 |


:

:

, , . , .
==> ...

1695 - | 1530 -


© 2015-2024 lektsii.org - -

: 0.011 .