My project has a textbox with a Keypress event coded to fire procedures when either PAGE DOWN or PAGE UP are pressed. When I press CTRL+C (to copy textbox contents), the Keypress event fires as if the PAGE DOWN KEY.
Also wierd: When I press CTRL+V, to paste, "DEFINE CLASS SUBTEXTBOX" the class definition header, appears in the field contents.
define class subTextBox as TextBox
format="R"
height=17
specialeffect=1
procedur KeyPress(nKeyCode, nShiftAltCtrl)
if nKeyCode=18
SetFocusforPageKeys(this.name,val(this.parent.lblItemNo.Caption),-1)
else
if nKeyCode=3
SetFocusforPageKeys(this.name,val(this.parent.lblItemNo.Caption),1)
else
endif
endif
endproc
enddefine
Imagination is more important than knowledge