เรียนรู้ Textbox Property Font, CharacterCasing, PasswordChar, ReadOnly, TextAlign, WordWrap, Multiline, ScrollBar, AcceptsTab, AcceptsReturn,MaxLength Property TabIndex, CausesValidation Event TextChanged KeyPress จะไม่รับ ctrl alt shift Asc(e.KeyChar) = 13 Char.IsDigit(e.KeyChar) IsLetter, IsPunctuation, IsLower, IsUpper KeyDown รับการกด ctrl alt shift ได้ จากการใช้ object e , การกด ctrl ค้างไว้ แล้วตามด้วยปุ่มอื่นๆ Validating ใช้ร่วมกับ Property CausesValidationg เซตให้ e.Cancel = true , เป็นเหตุการณ์ที่ใช้ตรวจสอบการใส่ค่าใน TextBox แม้แต่ปิดหน้าต่างก็ไม่ได้ อาจใช้ ErrorProvider Method AppendText,Clear เรียนรู้Label Property BorderStyle, TextAlign Event DoubleClick ถ้าใช้คู่กับ click Method SendToBack, BringToFont ศึกษาเรื่องของฟอร์ม(Form) Property ของฟอร์ม Opacity,TopMost,StartPosition,ShowInTaskBar,MaximizeBox,MinimizeBox,ControlBox AcceptButton ถ้าเคาะEnter จะหมายถึงว่าให้ไปทำงานปุ่มที่ตั้งไว้ BackGroundImage อย่าลืม Save ก่อนสั่ง run จึงจะเห็นผล(มีหลาย Control ที่เป็นเช่นนี้ หรืออาจจะต้อง Buildก่อน) ForeColorและBackColor มีความพิเศษตรงที่ จะทำให้ ตัวอักษรที่ว่างใน Control เป็นสีนั้นทันที BorderStyle HelpButton การเพิ่มForm การStartup Form การลบForm การเรียกฟอร์มอื่น ข้อระวังฟอร์มที่เรียก ถ้าถูกปิดไป จะไม่สามารถใช้ คำสั่ง show ได้ เพราะ ไม่มี instance แล้ว แต่ถ้าให้มี instance ทุกครั้ง ก็จะเปิดได้หลายฟอร์ม ดังนั้นต้องแก้โดยการใส่โค้ดที่ event closing ให้ปิดฟอร์มแบบไม่จริง e.Cancel = True Me.Hide() Method ของฟอร์ม me.show me.showdialog me.activate me.hide me.close Event ของฟอร์ม การเลือก Event จากฟอร์ม Load Activated VisibleChanged Deactivated Closing Closed