dialog cancel button

hi friends,

I have created a dialog in a class. it is working fine when i click on OK button , but when i click on the cancel button it start opeation similar to the OK button. Any idea why?

Pls help .



It is the standard functionality in AX that when you click OK button it process the logic written in the class and when click CANCEL button it come out of it.Did you extend the class with RunBaseFrame work.

Can you share the code what you have written.