In VB6 we had modules and where we would put functions that would be global across all forms etc.

How would I do that in C#.NET (or VB.NET)?

I have a bunch of borderless forms. One of those forms has and piece of code that moves a borderless form and I'd like to reuse the code in the rest of the forms. Where do I put it?