inheritance
Posted: Thu Aug 30, 2007 8:50 am
What can i do with inheritance ?
Is there an example ?
Is there an example ?
Code: Select all
public class MyForm : Ranorex.Form
{
/// <summary>
/// Initializes a new instance of the MyForm class.
/// </summary>
/// <param name="handle"></param>
public MyForm(IntPtr handle) : base(handle)
{
}
public Button FindButtons(Int32 controlId)
{
Button button = base.FindButton(controlId);
if (button != null)
{
Console.WriteLine("FindButton OK");
button.Enabled = false;
Application.Sleep(1000);
button.Enabled = true;
Application.Sleep(1000);
Console.WriteLine("FindButton Sleep");
}
return button;
}
}