Nerissa,
>How is Lockscreen property affected by cmdbutton.click() or gridtextbox.dblclick()?
Which class are you using as the grid that's launching the edit form? You should be using a CListObjEdit grid. If you are using this control, make sure you're not overriding methods in the grid or the grid container. Behind the scenese the grid is setting and clearing LockScreen to achieve the "full width" highlight bar effect.
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com