> > Does it crash or just give an exception? Using SetSTCFocus seems to > be working for me. Thanks Robin, SetSTCFocus works (I used STCFocus), dont know the difference, but that's of no importance at this moment. cheers, Stef Mientki