C# 各類控制項

1.DataGridView


可以一行一行加入。

DataGridViewDisableButtonCell buttonCell = (DataGridViewDisableButtonCell)dataGridView1.Rows[index].Cells[2];

2.TextBox

Note   The ReadOnly property only affects user interaction at run time. You can still change text box contents programmatically at run time by changing the Text property of the text box.

3.PictrueBox

動態載入圖片:1.點選 右方 property 會出現 一個視窗 2.進入視窗的"資源"頁並加入 picture  
3.在程式裡打入 pictureBox1.Image = Properties.Resources.Icon;

留言

這個網誌中的熱門文章

組合語言 Assembly Language