I am using VB 6.0 and I have a project with 1 form. I want to force this form to come to the top when a value gets placed into a text field. I have tried the following code


Public Const SWP_SHOWWINDOW = &H3
Public Const SWP_NOMOVE = &H2
Public Const SWP_NOSIZE = &H1
Public Const HWND_TOPMOST = True
SetWindowPos DDEPHOTO.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
DDEPHOTO.Show

This seems to work the first time but after I have the form up, if I minimize it by clicking the"-" sign in the upper right, I can never get it to come up on top of my other programs again. Any help would be great. Thanks