What is the equivilent of "Exit Sub" in C#?

Also, what statement will cause the form to close if a condition isnt met? For example, I want to close a form if someoneclicks Cancel to open a file.

Thanks for all your patience!