I have the following code that grabs Scheduled Tasks, although I am having trouble outputting them into a text box:
private void button22_Click(object sender, EventArgs e)
{
var query = new ManagementObjectSearcher("SELECT * FROM Win32_ScheduledJob");
var tasks = query.Get();
richTextBox6.Text = ManagementObjectSearcher.ToString();
}
Try this