ok, i feel kinda goofy, i know the answer, cant remember for the life of me....

how do you close a modal dialog in mfc from the code?

to make sure we're on the same page, i use .net and i called the dialog with the .DoModal() function.

thanks in advance