PMac
Member
- Joined
- Feb 17, 2012
- Messages
- 11
- Programming Experience
- Beginner
Hi all, I'm new to this forum, but I've been using it for quite some time for help with the project I'm working on.
I'm quite new to VB.NET as well, so pardon me if some of my questions seem a little basic..
In the project I'm currently working on, there is a part where the user makes selections from some comboboxes (5 in total), and then clicks a button. Once this button is clicked, depending on the selections the user has made, there is going to be different information displayed in a text box (There are 504 possible combinations of selections all together, and each will display a different block of text). As well as pictures, and some other different information.
So far I have the pictures working based on the combinations the user selects, but I'm having trouble figuring out the best way to display the text information (which is the most important part of the information). Right now I have 504 dummy text files, that I still need to fill in with the proper information, all with their names corresponding to the string I would like them to be referred to as, but my knowledge is very limited as far as the best way to incorporate this text into my project.
The text will be formatted, and fairly long (A few paragraphs or so) I know I could go through all 504 different combinations and simply cut and paste the text into the Me.Textbox.Text = "Insert desired text here" for each instance, but that will be extremely time consuming, not to mention clutter up my code like crazy.
I've looked at a few different tutorials, but am still at a loss on how to import my text into a database and then access the database and show the desired section of text when the user makes their selections.
I think a database would be the best way to accomplish my goal, but am not 100% sure. Any help with this would be greatly appreciated, as I don't really want to clutter up my code with 504 blocks of un-needed text, and I also don't want to have to distribute my program with a folder containing all the individual text files, I'd much rather have it all contained in the build.
Thanks,
Patrick
PS Sorry for the extremely long post, but I wanted to give as much detail as I could
I'm quite new to VB.NET as well, so pardon me if some of my questions seem a little basic..
In the project I'm currently working on, there is a part where the user makes selections from some comboboxes (5 in total), and then clicks a button. Once this button is clicked, depending on the selections the user has made, there is going to be different information displayed in a text box (There are 504 possible combinations of selections all together, and each will display a different block of text). As well as pictures, and some other different information.
So far I have the pictures working based on the combinations the user selects, but I'm having trouble figuring out the best way to display the text information (which is the most important part of the information). Right now I have 504 dummy text files, that I still need to fill in with the proper information, all with their names corresponding to the string I would like them to be referred to as, but my knowledge is very limited as far as the best way to incorporate this text into my project.
The text will be formatted, and fairly long (A few paragraphs or so) I know I could go through all 504 different combinations and simply cut and paste the text into the Me.Textbox.Text = "Insert desired text here" for each instance, but that will be extremely time consuming, not to mention clutter up my code like crazy.
I've looked at a few different tutorials, but am still at a loss on how to import my text into a database and then access the database and show the desired section of text when the user makes their selections.
I think a database would be the best way to accomplish my goal, but am not 100% sure. Any help with this would be greatly appreciated, as I don't really want to clutter up my code with 504 blocks of un-needed text, and I also don't want to have to distribute my program with a folder containing all the individual text files, I'd much rather have it all contained in the build.
Thanks,
Patrick
PS Sorry for the extremely long post, but I wanted to give as much detail as I could