tailieunhanh - Beginning Visual Basic 2005 Databases phần 10

Nhấp vào hộp Tên lớp kết hợp và chọn UndoToolStripButton; và trong hộp Phương pháp kết hợp Name, chọn sự kiện Click. Thêm đoạn mã sau vào thủ tục Click vào UndoToolStripButton Nhấp vào hộp Tên lớp kết hợp và chọn AddToolStripButton; và trong hộp Phương pháp kết hợp Name, chọn sự kiện Click. Thêm sau | Time Tracker Project UI Private Sub copyToolStripButton_Click ByVal sender As Object _ ByVal e As Handles EditCopy End Sub 35. Click the Class Name combo box and choose pasteToolStripButton and in the Method Name combo box choose the Click event. Add the following code to the pasteToolStripButton_ Click procedure Private Sub pasteToolStripButton_Click ByVal sender As Object _ ByVal e As Handles EditPaste End Sub 36. Click the Class Name combo box and choose UndoToolStripButton and in the Method Name combo box choose the Click event. Add the following code to the UndoToolStripButton_ Click procedure Private Sub UndoToolStripButton_Click ByVal sender As Object _ ByVal e As Handles EditUndo End Sub 37. Click the Class Name combo box and choose AddToolStripButton and in the Method Name combo box choose the Click event. Add the following code to the AddToolStripButton_ Click procedure Private Sub AddToolStripButton_Click ByVal sender As Object _ ByVal e As Handles ActionAdd End Sub 38. Click the Class Name combo box and choose UpdateToolStripButton and in the Method Name combo box choose the Click event. Add the following code to the UpdateToolStripButton_ Click procedure Private Sub UpdateToolStripButton_Click ByVal sender As Object _ ByVal e As Handles ActionUpdate End Sub 39. Click the Class Name combo box and choose DeleteToolStripButton and in the Method Name combo box choose the Click event. Add the following code to the DeleteToolStripButton_ Click procedure Private Sub DeleteToolStripButton_Click ByVal sender As Object _ ByVal e As Handles ActionDelete End Sub 663 Appendix B This is all of the code that you need to add to the Admin form. At this point you can save and run your project and test the menu .

TỪ KHÓA LIÊN QUAN