remove dialog boxs

I want to remove these dialog boxs while my application is running.I want it will be automatically click "OK" and "Yes" button on these dialog boxs and it does not show to the user while my application is running.How can i resolve it in API programming by C#.net language.

SolidworksApi macros