I'm new to the world of ".NET" -- fresh out of VB6 I am.

Anyway, I just spent the past 20 mins trying to write a function and have it called correctly.

Apparently, I need to build the function within the PUBLIC CLASS frmMain (my main form) ?? Any effort to try and write the function out on it's own just causes issues.

I just wanted to understand why that is and hopefully grab a high level explanation from someone on how the new coding screen is setup. Let's say I'm writing a function that validates a value entered on my form. Am I correct in putting the function in the form class or should it go elsewhere?