if (tabControl2.SelectedTab == TABQUERYDESIGNER) { ListBox[] lstbxQueryDesigner = new ListBox[100]; TABQUERYDESIGNER.Controls.Add(lstbxQueryDesigner[lstbxno]); _objDEFfile.ReadDeftoLIst((@"C:\Datagenerator\" + Connection.Username + @"\" + Connection.Requirementname + @"\Configuration\" + listbxDef.SelectedItem.ToString() + ".def")); foreach (string r in DEFfile.listDef) { r.Replace(" ", " ");//sd r.Replace("| ", "|");//sd r.Replace(" |", "|");//sd //Split the row at the delimiter. columnreader = r.Split("|".ToCharArray()); rowreader = columnreader[0].Split(" ".ToCharArray()); if (rowreader[0] == "F") { lstbxQueryDesigner[lstbxno].Items.Add(rowreader[1].ToUpper()); } } } lstbxno += 1; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)