Vb.net ShowDialog() crashing windows with UNEXPECTED_KERNEL_MODE_TRAP

Solution for Vb.net ShowDialog() crashing windows with UNEXPECTED_KERNEL_MODE_TRAP
is Given Below:

I have a form (A) open as Dialog. it has three instance of another form opened in TabControl’s tab (X,Y,Z).
I am passing keyboard events from A to X,Y,Z. I select tabs X,Y,Z with Key 1,2,3
the problem was, when i closed the form A it minimize all windows.

In process of finding the bug. I crashed mt windows somehow.

I opened the form using “formA.ShowDialog(Me)”, if I open it as using “formA.ShowDialog()”
the PC crashes with UNEXPECTED_KERNEL_MODE_TRAP

Is it possible to crash windows, if I handle the events incorrectly?

I have tested formA.ShowDialog() on 3 different high end win10 machines, they all crashed.