Create and use a VB.NET class in Silk4Net Project
After you have created a Silk4Net VB.NET Project and recorded a Silk4Net Class in Visual Studio 2010 you should right click on the Project tree node in the solution Explorer and Select "Add > Class".
In the "Add New Item" dialog box that follows provide the Class with a name and press Add.
In the VB Class file you can for example create a function which can be later reused in the Silk4Net Test Method. In this instance I have created a Class called "SetUsername" and a function called "User".
In the main method of the Silk4Net class you will first have to instantiate the class that you previously created, this can be achieved like so:
Dim name As New SetUsername
Then you can pass the return value of the function as an input parameter to one of the Silk4Net methods such as SetText(); as shown below: