i want to do the following:
1. Click a button on Main menu.
2. Close main menu ( I would use hide if possible)
3. Open form2
4. Open other forms and hide or close the previous form. \\ will not do now
5. Eventually able to go back to Main form.
my main form code: public partial class EntryForm : Form
{
//EventClass myEventClass = new EventClass();
public EntryForm()
{
InitializeCompo nent();
}
private void button1_Click(o bject sender, EventArgs e) \\ click button event
{
FireBirdClass firebirdConvert = new FireBirdClass() ;
List<string> fireBirdTables = firebirdConvert .HandleFireBird Data();
fireBirdTables. Sort();
SqlConvertClass sqlConvert = new SqlConvertClass (); \\ what to do here
List<string> sqlTables = sqlConvert.Conv ertToSQL(fireBi rdTables); \\ passing list of tables to a method in the second form
} \\ not quite sure now....
my second form's code:
public partial class SqlConvertClass : Form
{
\\ some code
public SqlConvertClass ()
{
InitializeCompo nent();
}
public List<string> ConvertToSQL(Li st<string> sqlTables)
{
\\ some code
}
}
}
the above form contains only display info gathered in method: public List<string> ConvertToSQL(Li st<string> sqlTables)
how do i this please i am desperate!!!!!! !!!!!!
1. Click a button on Main menu.
2. Close main menu ( I would use hide if possible)
3. Open form2
4. Open other forms and hide or close the previous form. \\ will not do now
5. Eventually able to go back to Main form.
my main form code: public partial class EntryForm : Form
{
//EventClass myEventClass = new EventClass();
public EntryForm()
{
InitializeCompo nent();
}
private void button1_Click(o bject sender, EventArgs e) \\ click button event
{
FireBirdClass firebirdConvert = new FireBirdClass() ;
List<string> fireBirdTables = firebirdConvert .HandleFireBird Data();
fireBirdTables. Sort();
SqlConvertClass sqlConvert = new SqlConvertClass (); \\ what to do here
List<string> sqlTables = sqlConvert.Conv ertToSQL(fireBi rdTables); \\ passing list of tables to a method in the second form
} \\ not quite sure now....
my second form's code:
public partial class SqlConvertClass : Form
{
\\ some code
public SqlConvertClass ()
{
InitializeCompo nent();
}
public List<string> ConvertToSQL(Li st<string> sqlTables)
{
\\ some code
}
}
}
the above form contains only display info gathered in method: public List<string> ConvertToSQL(Li st<string> sqlTables)
how do i this please i am desperate!!!!!! !!!!!!
Comment