Code please? The error indicates that you're accessing instance members from a class member. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Passing-Sender-to-a-sub-procedure-tp4026765p4026767.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.