I'm not exactly sure of the issue you are having but you could create your own MDI input if you like:
Past this code on a Button:
Private Sub cmdok_Click()
Dim ans As String
MyGCode = InputBox("Enter Gcode", "My MDI")
If MyGCode = "" Then
MsgBox "Gcode Canceled"
Else
Code MyGCode
End If
End Sub