hi I am using An mdi form which contain many child form and mdi form contain ToolStrip1 in that redo & cut button are not working plz help me out of this Private Sub toolredo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles toolredo.Click Dim activeChild As Form = Me.ActiveMdiChild If (Not activeChild Is Nothing) Then Try Dim tb As TextBox = CType(activeChild.ActiveControl, TextBox) If TextBox.CanRedo = True Then If TextBox.RedoActionName <> "Delete" Then TextBox.Redo() End If End If Catch MessageBox.Show("You need to select a TextBox.") End Try End If End Sub
|+0 forum 5|
Hi. I would like help on undoing and redoing using the memento design pattern. I want to save a state that a board is in. Like a chessboard. If the user uses the undo option a previous board should be loaded and all of the states that the pieces was in. And the redo option should redo a previous move. I'm in quite a hurry to finish this project. This is about all I still have to do. Any help or suggestions on how to do it would be appreciated.
|+0 forum 3|