Cannot search control with class name

Class library usage, coding and language questions.
hsc
Posts: 1
Joined: Wed Jul 19, 2006 8:28 am

Cannot search control with class name

Post by hsc » Wed Jul 19, 2006 3:52 pm

I would like to find a control in a dialog with class name, but the form class doesn´t have a function for this.

webops
Site Admin
Site Admin
Posts: 349
Joined: Wed Jul 05, 2006 7:44 pm

FindClassName implemented for V0.9.2

Post by webops » Wed Jul 19, 2006 9:57 pm

OK, you are right, I added this function to the Form class (Form.FindClassName).
You can use it in the next Version 0.9.2

But some suggestions:
  • If a control has a control name, search the control by control name.
    If a control hasn't a control name, but has a control Id,
    than search the control by control Id.
    If you have problems with the first two, you can search the control by class name, but use this possibility only if you have no other one.
Jenö Herget
Ranorex