Ali,
I do not understand what you mean by saying that "The reason I am using LOCKSCREEN is I do not want my memo text box scrolls to its beginning when the popup form shows up", I seem not able to reproduce the problem, my textbox does not scrols when I call a modal form from the click of a button, can you post a repro?
You might also try using LockWindowUpdate API function, I think it behaves better than LOCKSCREEN (of course, it might not solve your problem at hand <g>)
declare LockWindowUpdate in win32api Integer
LockWindowUpdate(thisform.HWnd)
do form myModalPopupForm
LockWindowUpdate(0)
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?
"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare
"To die for a religion is easier than to live it absolutely"
Jorge L. Borges