On jeudi 18 décembre 2008, Demosthenes Koptsis wrote: > Actually this was my thought, to put this statement in SUB Editor_Change() > > but it doesnot work, that's why i ask you...what am i doing wrong? > > my code is > > PBLIC SUB edtSQL_Change() > > edtSQL.Goto(edtSQL.Lines.Count, 0) > > END >
Moving the cursor during a Change event is risky, as you don't know if the editor will move the cursor again after the event. > but when i change editors text with edtSQL.text="somethiing" does not > go to last line > Setting the Text property changes the text, raises the Change event, and the moves the cursor to the top. So if you want to put it at the end, you must use the Goto() method just after. Regards, -- Benoit Minisini ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user