| 
Rank: Member
 Groups: Guest
Joined: 4/6/2010(UTC)
 Posts: 24
 
 | 
            
	      
                I have multilayerviewer1 with a imageand i have create a button with function undo and redo
 
 Private sub Button1_click
 
 MultiLayerViewer1.undo()
 
 end sub
 
 but when i click the button
 Show this error message:
 
 Undo/Redo  functionality should  be enabled before method call.
 
 Because this message?
 
 Sorry for my english
 
 Thank you
 Maurizio
 | 
	
    | 
             | 
            
         | 
    |  | 
        
        
        
         
		   
        
            
            
	
    | 
Rank: Advanced Member
 Groups: Guest
Joined: 3/9/2008(UTC)
 Posts: 554
 
 Was thanked: 1 time(s) in 1 post(s)
 | 
            
	      
                Hi, To get worked Undo/Redo functionality you should enable it. For example: Code:Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
	'Enable Undo/Redo functionality
	MultiLayerViewer1.UndoRedoEnabled = True
	MultiLayerViewer1.UndoRedoTrackingEnabled = True
End Sub
 This sample for Win application. This code is called when the Form is loading. | 
|  | 
	
    | 
             | 
            
         | 
    |  | 
        
        
        
    
		
        
            
            
	
    | 
Rank: Member
 Groups: Guest
Joined: 4/6/2010(UTC)
 Posts: 24
 
 | 
            
	      
                ok Tamila work ok :) Thank you for reply Edited by user Thursday, May 6, 2010 5:24:52 PM(UTC)
 | Reason: Not specified | 
	
    | 
             | 
            
         | 
    |  | 
        
        
        
    
    
        Forum Jump
         
    
    You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.