Lets say the code block you showed is contained in a "Whatever.vb" file.
You also should have in your project a "Whatever.Designer.vb" file.
In this file, find the line where the ifgEntryFrom variable is declared. It should be something like:
Dim Private ifgEntryForm As FlexGrid
Try to change it for:
Dim Private WithEvents ifgEntryForm As FlexGrid