Ranorex

cannot get control's type

 
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexNet
View previous topic :: View next topic  
Author Message
cherry



Joined: 06 Jun 2007
Posts: 5

PostPosted: Wed Jun 06, 2007 2:36 pm    Post subject: cannot get control's type
I want to test a menustrip on the GUI. I ran the code I attached, the program could not find the type of the control. I mean, it did find a control which text is "MenuStrip", but it didn't tell me it's a menustrip. Is there any problem? Thanks.

[STAThread]
static void Main()
{

Application.Start("C:\\000virginroot\\software\\source\\MiniTof\\MiniV iew\\bin\\Debug\\MiniView.exe");
Form form = Application.FindFormTitle("MiniView");
Control menuStrip = form.FindChildText("MenuStrip");
}
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 05 Jul 2006
Posts: 351

PostPosted: Thu Jun 07, 2007 4:42 pm    Post subject:
Please check the control name of the menu with RanorexSpy. If the control name is not empty then you should find the control with the method FindControlName().

Is your menu a .Net2.0 MenuStrip Control or a 3rd party control?

Best Regards

Gabor
Ranorex Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexNet All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum