I guess doing this in VB is much easier, but how do I call a method that is another class? This is what I have inside of my Sql.cs:
public static MainWindow MainWindow;
public void FlLoadMembers()
SqlCmd = SqlCon.CreateCommand();
const string commandText = "select firstname, lastname from members";
SqlAdapter = new SQLiteDataAdapter(commandText, SqlCon);
DtMembers = DsMembers.Tables;
FlLoadMembers(); //This doesn't work apparently in C#
FlLoadMembers() must be in a
class. You need to create the object of that class and then you can call that function. So if your function
FlLoadMembers() is in class named
Class1, then you can do this:
Class1 obj = new Class1(); //Creating the object. obj.FlLoadMembers();//Calling the function.
Hope it helps you.