Tom Garth 10/8/2008 11:48:35 AM

Mouse clicks not accepted the 2nd time a form is opened.

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

 

 

Version: Unknown or N/A
Section: Visual Studio Tools for Dynamics GP


Table Definition Quick Links
All Tables
SOP Tables
RM Tables
GL Tables
POP Tables
HR Tables
PM Tables
UPR Tables
IV Tables
Olympic Tables
3