Greetings!
I am working on a program that will allow a user to set up scenarios for different companies. The basic company data (Name, ID #) are stored in a DB table.
I have a menu item under the File menu that says "Select Company", and I'd like to create submenu entries for each of the companies in the table under that. When they select one, I'll store the Company ID and use it to differentiate the query data for the company selected.
I can easily get the data into a DataTable object as I'm loading up the main form, but I'm not sure how to use it to build the submenu items. Anyone have an example I can follow?
Oh and in case it matters I'm using VB.NET 2008.
Thanks
Craig
I am working on a program that will allow a user to set up scenarios for different companies. The basic company data (Name, ID #) are stored in a DB table.
I have a menu item under the File menu that says "Select Company", and I'd like to create submenu entries for each of the companies in the table under that. When they select one, I'll store the Company ID and use it to differentiate the query data for the company selected.
I can easily get the data into a DataTable object as I'm loading up the main form, but I'm not sure how to use it to build the submenu items. Anyone have an example I can follow?
Oh and in case it matters I'm using VB.NET 2008.
Thanks
Craig