The journal that you posted seems to work fine for me; except for the conversion of the volume from cubic inches to cubic centimeters, but that isn't the problem you asked about.
I would suggest changing line 95 to read:
If MyForm.ShowDialog = System.Windows.Forms.DialogResult.OK Then
but I'm not 100% sure that will take care of the issue you are having.
What version of NX are you using and what versions of the .net framework do you have installed?