Search found 6 matches

by bebenin_s
Tue Nov 11, 2008 7:34 pm
Forum: General Questions
Topic: Working with Checkbox style buttons (C#)
Replies: 4
Views: 4750

Awesome! It worked, I really appreciate it!
by bebenin_s
Tue Nov 11, 2008 5:25 pm
Forum: General Questions
Topic: Working with Checkbox style buttons (C#)
Replies: 4
Views: 4750

Thanks! Your suggestion did not work, but I think it's probably because this button has custom properties. After it didn't work, I opened the developers project and found that there is a custom button class that contains a Checked() method. So I guess Ranorex doesn't pick up Misc properties of the b...
by bebenin_s
Tue Nov 11, 2008 2:36 pm
Forum: General Questions
Topic: Working with Checkbox style buttons (C#)
Replies: 4
Views: 4750

Working with Checkbox style buttons (C#)

Hello, I have a form with Checkbox style buttons. Is there a way to find this specific kind of button? When I am using: m_MessageBox = Application.FindFormTitle(formName); m_ButtonLeft = m_MessageBox.FindButton("btnLeft"); m_ButtonLeft does not have a .Checked attribute. I basically want to see if t...
by bebenin_s
Tue Nov 11, 2008 2:22 pm
Forum: General Questions
Topic: Best way to check if a Button is missing (C#).
Replies: 4
Views: 4463

I know what happened. I used a single '=' instead of a double '=' in the IF statement.
Sorry for misinformation, it was very late.
Thank you very much.
by bebenin_s
Mon Nov 10, 2008 2:25 pm
Forum: General Questions
Topic: Best way to check if a Button is missing (C#).
Replies: 4
Views: 4463

Hi, thanks for respond.
Here's the code (using Ranorex 1.5):

Form m_MessageBox = Application.FindFormTitle("FOO");
Button m_ButtonOk = m_MessageBox.FindButton("btnEnter");

if (m_ButtonOk == null)
{
........
}
else
{
.......
}

Would it be better to use Ranorex 2.0?
Thanks
by bebenin_s
Sat Nov 08, 2008 11:56 pm
Forum: General Questions
Topic: Best way to check if a Button is missing (C#).
Replies: 4
Views: 4463

Best way to check if a Button is missing (C#).

Hello,
I am wondering if there is a way to check if the button exists on the Form.
I tried:
if (m_MyButton == null)
but I get Error CS0029: Cannot implicitly convert type 'Ranorex.Button' to 'bool'

Thanks!