I have a public string, called tester, that I would like to use within my deletetask_Click event, how could this be used within the st.DeleteTask line?
public string tester {get;set;}
private void deletetask_Click(object sender, EventArgs e)
{
ScheduledTasks st = new ScheduledTasks(@"\\" + System.Environment.MachineName);
st.DeleteTask("tester");
}
Remove the quotes: