By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,427 Members | 1,863 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,427 IT Pros & Developers. It's quick & easy.

implementing multiple forms in a windows app dilemma

P: 1
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()

private void button1_Click(object sender, EventArgs e) \\ click button event
FireBirdClass firebirdConvert = new FireBirdClass();
List<string> fireBirdTables = firebirdConvert.HandleFireBirdData();
SqlConvertClass sqlConvert = new SqlConvertClass(); \\ what to do here
List<string> sqlTables = sqlConvert.ConvertToSQL(fireBirdTables); \\ 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()

public List<string> ConvertToSQL(List<string> sqlTables)
\\ some code

the above form contains only display info gathered in method: public List<string> ConvertToSQL(List<string> sqlTables)

how do i this please i am desperate!!!!!!!!!!!!
Nov 4 '08 #1
Share this Question
Share on Google+
1 Reply

P: 175
you say you want multiple forms, but your code ... all I can tell from it is that you're trying to work with some data from a database. What does that have to do with multiple forms in C++?

anyway, if you want multiple forms ... what compiler are you using? if you're using visual studio look into using MFC. If using another one, there are other options, but your code doesn't really fit your question.
Nov 5 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.