When writing apps with asp.net, which I do more of than vb.net apps, I have always followed the rule of opening a connection to the server, getting the data, and closing the connection as quickly as possible. This seems like a best practice.
Is it equally important to do this on a client/server vb.net app? For example, if you had multiple forms, each either with a grid of data, or a form of data, would you typically open the connection when each form started, close it when the user left the form? or is it acceptable to define a global variable for the connection and keep it open the entire life span of the app?
Personally I would tend to open/close the connection with each form, but wondering what other folks recommend with a typical desktop c/s app?