Browsing securely when using public wi fi connection or networks?

How do I make my browsing secure when am using public wi fi connection or networks? I recently found out that hen am in public using public networks (wi fi), window will put my connection in public thereby protecting some of my files, but this protection is really limited because someone was able to access my files while using the same public network. Is there any other ways to increase my privacy while using public networks?
