Hi, my application written by Visual Basic.
now i use to testcomplete enterprice version 3.11
I know add an event handler to the list of project events. But i want add form_load() Event of VB to the list of project events.
When I input source *.OLB ( in my computer that is "C:\Program Files\Microsoft Visual Studio\VB98\VB6.OLB") in the Event Source TextBox, But in the accessible events has not Form_load() or OnLoad(). Why ? , I want to control that Event.
help me [img]images/icons/frown.gif[/img] .
In TestComplete, you can create script routines that handle events, which occur in the TestComplete projects, and events, which occur in any ActiveX object that implements the IDispatch interface. However, the event interface declared in the VB6.OLB file is not a descendant of the IDispatch interface. Please see the 'Events and Event Handlers' help topic for details.
BTW, If you want to wait until a window is opened you can use the following code snippet:
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;"> Set w = p.WaitWindow("MyWndClass", "My Window Caption", -1 , 500)
While Not w.Exists
Set w = p.WaitWindow("MyWndClass", "My Window Caption", -1 , 500)
WEnd</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">Please let me know if you have any additional questions.