In VB.NET I have a Class file (called Common) with some code:
Public Shared Sub BindCombos()
I could then populate a combobox by doing:
Common.BindCombos(param1, 2 etc)
And this was enough.
I tried doing this in C# and it will not let me do this.
In C# I have to create an object from the class:
Common myCbo = new CommonUtils();
myCbo.BindCbos(param1, 2 etc);
Compiles and runs but is not doing the job i.e. not populating my control.
How can I just create a separate class/code file that has generic functions I can call??