The code below is from a menu item under Additional when the RM Receivables Batches is open. frmAutoVoucher is a Dynamics GP style form with several buttons and a DataGridView that includes a couple of checkboxes in each row. Everything works perfectly the first time the form is loaded. Subsequent loading during the same GP session results in the form's child controls not accepting input from the mouse. Keyboard navigation and key presses can cause the controls to perform their functions, but mouse clicks are not accepted except for the form itself. It can be moved and the control boxes can be clicked to maximize, minimize, and close the window. The mouse still functions normally in GP and everywhere else.
Dim AutoVoucherForm As New frmAutoVoucherWith AutoVoucherForm
.mbDeferred =
False
.mbVouchered =
False
.msRM_BatchNum = RM_BatchWindow.BatchNumber.Value
.ShowDialog()
If .mbDeferred And .mbVouchered Then
RM_BatchWindow.PostButton.Enable()
End If
.Close()
End With
AutoVoucherForm =
Nothing