> Second, what's returned when a user presses the "Yes" > and "No" buttons in a dialog box whose parameters > include wxYES_NO? When in doubt print it out is my motto. Why not just add a couple of lines: res = d.ShowModal() print res See what gets printed and substitute in your program... Alan G.