I dont know if others have encountered this problem.
Occasionally i face a very weird issue during test execution where a dotnet form is the first thing that loads and user is expected to enter some pre requisite information on the same.
At times however the form does not open up in the foreground (i.e. is hidden) requiring the user to do an Alt + Tab just to get to the window. This becomes a bit annoying for a new comer using the framework who is not aware of this setting.
Is there a way to do something like (SetForegroundWindow) with vbscript so that the form always loads in the foreground in front of qtp window (noticed that the window.Activate doesnt really help)
Re: Getting foreground window for dotnet factory form
Set oform = Dialog("text:=My Dot Netform")
oform.Highlight 'Highlight is highlighting the dotnet form
Msgbox formhwnd = oform .GetROProperty("hwnd")
The msgbox is displaying false instead of the hwnd value