Click here to Skip to main content
13,510,146 members

The Insider News


The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

NewsDealing with off by x issues when using the TextBox Pin
Terrence Dorsey20-Jan-13 12:07
staffTerrence Dorsey20-Jan-13 12:07 
One of the toughest problems I faced when I built Notepad Classic was an issue where many functions like Go To & Find were always off a few characters. After a bit of experimenting I noticed a pattern, it was off by the number of characters equal to the line number (0 based).... It turned out that the way the string functions count a line break.
Details right after the \r\n
GeneralRe: Dealing with off by x issues when using the TextBox Pin
AspDotNetDev21-Jan-13 7:15
protectorAspDotNetDev21-Jan-13 7:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Advertise | Privacy |
Web03 | 2.8.180417.1 | Last Updated 24 Apr 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid