I know this thread is old. However, I found it because I encountered the same issue and there was no solution provided. I thought I’d post my solution here in case anyone else is looking for a way to suppress the confirmation.
This is controlled by seven boolean flags in the FormOptions. You can temporarily override all of them or just override the one specific for your situation. I use the OrderForm below but the same concept should apply for all forms. These are the same flags that get set when you check the box in the confirmation dialog to suppress future confirmation dialogs.
bool confirmUpdateOnFormClose, confirmUpdateOnInvokeSearch, confirmUpdateOnNewButton, confirmUpdateOnPrimaryKey
, confirmUpdateOnRowChange, confirmUpdateOnSaveAndNew, confirmUpdateOnSaveButton;
// Retain the existing confirm options for updates
confirmUpdateOnFormClose = this.oTrans.OrderForm.CurrentFormOptions.ConfirmOptions.ConfirmUpdateOnFormClose;
confirmUpdateOnInvokeSearch = this.oTrans.OrderForm.CurrentFormOptions.ConfirmOptions.ConfirmUpdateOnInvokeSearch;
confirmUpdateOnNewButton = this.oTrans.OrderForm.CurrentFormOptions.ConfirmOptions.ConfirmUpdateOnNewButton;
confirmUpdateOnPrimaryKey = this.oTrans.OrderForm.CurrentFormOptions.ConfirmOptions.ConfirmUpdateOnPrimaryKey;
confirmUpdateOnRowChange = this.oTrans.OrderForm.CurrentFormOptions.ConfirmOptions.ConfirmUpdateOnRowChange;
confirmUpdateOnSaveAndNew = this.oTrans.OrderForm.CurrentFormOptions.ConfirmOptions.ConfirmUpdateOnSaveAndNew;
confirmUpdateOnSaveButton = this.oTrans.OrderForm.CurrentFormOptions.ConfirmOptions.ConfirmUpdateOnSaveButton;
// Override current confirm options for updates. This is done to suppress the confirmation dialog on save (oTrans.Update).
this.oTrans.OrderForm.CurrentFormOptions.ConfirmOptions.ConfirmUpdateOnFormClose = false;
this.oTrans.OrderForm.CurrentFormOptions.ConfirmOptions.ConfirmUpdateOnInvokeSearch = false;
this.oTrans.OrderForm.CurrentFormOptions.ConfirmOptions.ConfirmUpdateOnNewButton = false;
this.oTrans.OrderForm.CurrentFormOptions.ConfirmOptions.ConfirmUpdateOnPrimaryKey = false;
this.oTrans.OrderForm.CurrentFormOptions.ConfirmOptions.ConfirmUpdateOnRowChange = false;
this.oTrans.OrderForm.CurrentFormOptions.ConfirmOptions.ConfirmUpdateOnSaveAndNew = false;
this.oTrans.OrderForm.CurrentFormOptions.ConfirmOptions.ConfirmUpdateOnSaveButton = false;
oTrans.Update();
oTrans.Refresh();
// Reset current confirm options for updates to original
this.oTrans.OrderForm.CurrentFormOptions.ConfirmOptions.ConfirmUpdateOnFormClose = confirmUpdateOnFormClose;
this.oTrans.OrderForm.CurrentFormOptions.ConfirmOptions.ConfirmUpdateOnInvokeSearch = confirmUpdateOnInvokeSearch;
this.oTrans.OrderForm.CurrentFormOptions.ConfirmOptions.ConfirmUpdateOnNewButton = confirmUpdateOnNewButton;
this.oTrans.OrderForm.CurrentFormOptions.ConfirmOptions.ConfirmUpdateOnPrimaryKey = confirmUpdateOnPrimaryKey;
this.oTrans.OrderForm.CurrentFormOptions.ConfirmOptions.ConfirmUpdateOnRowChange = confirmUpdateOnRowChange;
this.oTrans.OrderForm.CurrentFormOptions.ConfirmOptions.ConfirmUpdateOnSaveAndNew = confirmUpdateOnSaveAndNew;
this.oTrans.OrderForm.CurrentFormOptions.ConfirmOptions.ConfirmUpdateOnSaveButton = confirmUpdateOnSaveButton;