Returning the Button the User Chose in a Dialog Box
Return Value Button Clicked -2 Close -1 OK 0 Cancel 1 The first command button 2 The second command button >2 Subsequent command buttons