Answer to Question #2976 in C# for Craig Jansen

Question #2976
I have the following code for adding information from and array to a listbox [private void buttonAdd_Click(object sender, EventArgs e) { //add tracks to my tracks Add Tracks list box and tracks list box myTracksString[nextAvailbleRow, 0] = textBoxArtist.Text; myTracksString[nextAvailbleRow, 1] = textBoxSongName.Text; myTracksString[nextAvailbleRow, 2] = ((numericUpDownHours.Value * 3600) + (numericUpDownMinutes.Value * 60) + numericUpDownSeconds.Value).ToString(); nextAvailbleRow++; textBoxSongName.Text = ""; textBoxArtist.Text = ""; numericUpDownHours.Value = 0; numericUpDownMinutes.Value = 0; numericUpDownSeconds.Value = 0; listBoxAddTrack.Items.Clear(); for (int indexInteger = 0; indexInteger <= 199; indexInteger++) { listBoxAddTrack.Items.Add(myTracksString[indexInteger, 0] + " " + myTracksString[indexInteger, 1] + " " + myTracksString[indexInteger, 2]); } ] The issue I have is when I add the information it doesn't line up in columns i.e. row 1 has 3 columns but then in row 2 the columns line up dif
Expert's answer
Unfortunately, your question requires a lot of work and cannot be done for free. Submit it with all requirements as an assignment to our control panel and we'll assist you.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS
paypal