- Code: Select all
//Perform click test to see if the button rasies a click event
Button ClickButton = (Button)form.FindButton(button.ControlId);
ClickButton.Click();
Console.WriteLine("BUTTON PRESSED?: " + ClickButton.Pressed);
I've tried the example also from your Getting started guide but this is incorrect.
This specifies an error as your trying to specify a string and not an int value.Button button = form.FindButton("button1");
I'm currently evaluating this and any help with trying to sort it out would be great.