What is the difference between these?
A.)
Using xForm as New frmCall()
xForm.ShowDialog()
End Using
B.)
Dim xForm as new frmCall()
xForm.ShowDialog()
xForm.Dispose
C.)
frmCall.Show()
They are all showing the form, and I know it has a difference. What is it?
Aside from the Dispose() (which was covered by Reed), Show() and ShowDialog() are a big difference.
ShowDialog() is a blocking call, which means the methods doesn’t exit until the dialog you just popped up on the screen has been dismissed. Dialogs sit on top of your application and prevent you from interacting with the other forms beneath. This all is called “modal” behavior.
Show() does not block. The method will make the form visible and then continue on. You can show several forms this way and click/switch between them with no restrictions.