your problem is with comboBox1.Items.Add(strArrays15[0].Split('\t'));
you are running a for statement and adding a string array from the Split of the first strArrays15 array to the combobox items each time the for loop runs. This just creats a huge list of string arrays. Either combobox.AddRange
on a single string array, or loop through and add each individual item.
Here's one more problem.
You're looping through (int)strArrays15.Length
but using strArrays15[0].Split('\t');
instead of strArrays15[i].Split('\t');
and adding the output string array from the split to the combox item, which doesn't make sense. You need to be more clear on what you're trying to accomplish.
Assembly assembly = Assembly.LoadFile(Application.StartupPath + "/MyFiles.dll");
System.Resources.ResourceManager resourcemanager = new System.Resources.ResourceManager("ClassLibrary1.Properties.Resources", assembly);
if (resourcemanager != null) {
string jobListString = resourcemanager.GetString("JobsList");
if (!String.isNullOrEmpty(jobListString))
comboBox1.Items.AddRange(strArrays15[0].Split('\t'));
else
// handle error
} else
//handle error
return;
From your code though it looks like strArrays15 has more than 1 line, so unless you tell me exactly what data you're trying to put into the combox, and what's in strArrays15, I can't help you any further.