Implement Undo/Redo operations for Adding/Deleting ListView Items

前端 未结 2 498
伪装坚强ぢ
伪装坚强ぢ 2021-01-23 18:26

I have too much problems trying to implement an Undo/Redo operation in a ListView Control, just to add/remove items.

I realized time ago a relative question here Extend

2条回答
  •  离开以前
    2021-01-23 18:44

    You might also want to check out this Undo/Redo Framework written in VB.NET

    http://www.codeproject.com/Articles/43436/Undo-Redo-Framework

    Its designed for the following type of controls (but should also work with custom controls for the most part)

    • TextBox
    • ComboBox
    • DateTimePicker
    • NumericUpDown
    • MaskedTextBox
    • ListBox (single and multi-select)
    • CheckBox
    • RadioButton
    • MonthCalendar
    • ListView (Label text changes)

提交回复
热议问题