Posted: 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");
}
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?
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