Posts: 121
	Threads: 33
	Joined: Jun 2007
	
	
 
	
	
		Hi,
When initially designing a dialog, I thought I only needed "OK" and deleted the cancel button. How can I restore/recreate a button with IDCANCELfunctionality?
Thanks!
	
	
	
	
	
 
 
	
	
	
		
	Posts: 121
	Threads: 33
	Joined: Jun 2007
	
	
 
	
	
		Sorry, figured it out. (manually copyied ID1 and made ID2 to restore the missing cancel button, repositioned in dlg editor).
	
	
	
	
	
 
 
	
	
	
		
	Posts: 35
	Threads: 13
	Joined: Feb 2011
	
	
 
	
	
		you dont need the Ok Button you can take that off and just rename the cancel to close , i dont use ok button pretty much does the same thing unless your needing it to change or the ok button runs it i just you buttons to run macros/functions and take the ok and cancel off just use the x to close dialog
	
	
	
	
	
 
 
	
	
	
		
	Posts: 121
	Threads: 33
	Joined: Jun 2007
	
	
 
	
	
		Yes, usually that's what I do, but in this case, the OK processes a bunch of code, and I needed the cancel button to allow the user to exit without taking that next step.
Got it all worked out now, thanks though!