>I have a single form called from a PRG. It is set up as a top level form. I also set _SCREEN.Visible=.f. at the top of my PRG. The problem is that when I run the executable I create I see the form (with no desktop, as desired) but I have to click on the screen to make it active. I have mostly done FPW apps so I'm not that fluent in the basics of VFP 6. What do I need to add to make the form active?
i have not read the entire thread, but maybe the following helps. i use this in the activate method of my login form to ensure it has the focus as the user types their password:
DECLARE INTEGER SetForegroundWindow IN USER32 INTEGER
DECLARE INTEGER FindWindow IN USER32 STRING @ , STRING @
lnHWND=FindWindow(0, _Screen.Caption)
IF lnHWND>0
SetForegroundWindow(lnHWND)
ENDIF
CLEAR DLLS
hope this helps