Wait for form to load
I am trying to figure out how to use a wait method with my program and its objects. I need to wait for a particular form with a datagrid to load before I can continue. The control is being rather inconsistent with load times and is giving me fits. Using the information below, how should I go about scripting a wait to allow the form to load fully before continuing?
FullName - Sys.Process("M3.AKShell").WinFormsObject("frmMainVsd").WinFormsObject("tableLayoutPanel1").WinFormsObject("dockPanel").WinFormsObject("DockWindow", "", 2).WinFormsObject("DockPane", "", 1).WinFormsObject("Holder").WinFormsObject("AP").WinFormsObject("tabAP").WinFormsObject("tpVendor").WinFormsObject("tscVendor").WinFormsObject("ToolStripContentPanel", "", 1).WinFormsObject("tlpVendor").WinFormsObject("pnlVendorGrids").WinFormsObject("dgvVendorDetails")
MappedName - Aliases.M3_AKShell.frmMainVsd.tableLayoutPanel1.dockPanel.DockWindow.DockPane.Holder.AP.tabAP.tpVendor.tscVendor.ToolStripContentPanel.tlpVendor.pnlVendorGrids.dgvVendorDetails
Name - WinFormsObject("dgvVendorDetails")
WndClass - WindowsForms10.Window.8.app.0.3917f2_r17_ad1
ClrClassName - M3DataGridView
ClrFullClassName - M3.CustomControls.M3DataGridView