I am currently making an agenda which should be controlled via a seperate input form.
On this form I need to wait for user input before I can move the next input field.
Below is the entry for the to do field for adding a task.
After that it also has fields for date, time and reminders.
private void btn_Say_Click(object sender, EventArgs e)
{
string text = tbx_Say.Text;
if(text.Contains("Add") || text.Contains("add"))
{
if(text.Contains("Task") || text.Contains("task"))
{
screen.btn_Tasks.PerformClick();
while(screen.task.tb_TaskToDo.Text == "")
{
tbx_Anne.Text = "What should happen?";
Thread.Sleep(1000);
}
}
}
}
the perform click starts up a new which needs to be filled through the input form.
with or without the Thread.Sleep(1000) this form will not fully show and it waits for user input which I can not give…
In the mean time I’ve solved my problem, tested it and it works.