06-04-2015, 09:12 AM
So part of the application I am building is a user blog, where the user can submit new blog entries or view previous entries. I've managed to write to/read the blog entry to and from a text file, with a 9 digit date format in front of the entry.
The problem I am having is that when I am loading the previous entries into a comboBox, it is loading all the text from the blog into each item of the comboBox.
What I want to do is load the date of the blog into the comboBox only, and when the user clicks on said date the entire blog text file is loaded into a textBox.
In the code below, I really need the blogAlias string to act as alias/nickname in the comboBox for the actual blog text. But I can't figure out how to do it.
The problem I am having is that when I am loading the previous entries into a comboBox, it is loading all the text from the blog into each item of the comboBox.
What I want to do is load the date of the blog into the comboBox only, and when the user clicks on said date the entire blog text file is loaded into a textBox.
In the code below, I really need the blogAlias string to act as alias/nickname in the comboBox for the actual blog text. But I can't figure out how to do it.
Code:
'Fill comboBox with array of previous blog entries
While j < blogLineCount
     blogAlias = blogArray(j).Substring(1,9)
     comboBox1.Items.Add(blogArray(j))
     j = j + 1
End While