This never happened to me before.
I do have System.Windows.Forms namespace under uses clause and I am able to use DialogResult's properties. Look at the code below. It's where the problem is in my program.
if (thewinform.ShowDialog=DialogResult.OK) then
I did debug it and dialog winform opens. Once I click the OK button and returns to check on the DialogResult, it skips the if block of code. At which point, I noticed that DialogResult is actually NIL
I never encountered anything like this before.
Any ideas? Thanks,