Page 1 of 1

cannot get control's type

Posted: Wed Jun 06, 2007 1:36 pm
by cherry
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\\MiniView\\bin\\Debug\\MiniView.exe");
Form form = Application.FindFormTitle("MiniView");
Control menuStrip = form.FindChildText("MenuStrip");
}

Posted: Thu Jun 07, 2007 3:42 pm
by webops
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