Я пытаюсь ввести строку в richtextbox, хотя я получаю следующую ошибку:
Cannot implicitly convert type 'string[]' to 'string'
Код следующий:
private void testing_Click(object sender, EventArgs e)
{
// Get a ScheduledTasks object for the computer named "DALLAS"
string machineName = (@"\\" + System.Environment.MachineName);
ScheduledTasks st = new ScheduledTasks(machineName);
// Get an array of all the task names
string[] taskNames = st.GetTaskNames();
richTextBox6.Text = taskNames;
// Dispose the ScheduledTasks object to release COM resources.
st.Dispose();
}