public Group_Members() { GlobalVariables.connectToDatabase(); InitializeComponent(); List <string> memberNames = GlobalVariables.returnNamesGroupForMembers(GlobalVariables.selectedGroup); DisplayTasks.Text = "USER IDs IN THIS GROUP " + Environment.NewLine + Environment.NewLine; for (var i = 0; i < memberNames.Count; i++) { DisplayTasks.Text = DisplayTasks.Text + Environment.NewLine + memberNames[i] + Environment.NewLine + Environment.NewLine; } }