ZeroSleep

Brian Claridge / .NET Slacker / MCSD for .NET

First blog...

Well, I guess I have to start this thing sooner or later. First off, a little about myself.

I'd like to thank Scott for giving me access to this great tool. I'm constantly lurking dozens of feeds, probably spending a little too much time reading and not enough coding.

I'll start off by posting a little scriplet I came up with today to help solve an issue with a web control I'm working on. I searched high/low to find something as simple as returning the position of the caret within a textbox, but nothing seemed to work for me. Please let me know if it works for you.

Comments

Tosh Meston said:

Here's another solution from the Web Team Talking column on MSDN - http://msdn.microsoft.com/library/en-us/dnwebteam/html/webteam12032001.asp?frame=true#webteam12032001_topic2

Check out the "O Cursor Where Art Thou" section. Welcome to the blogsphere too.
# July 19, 2003 5:08 AM

Roy Osherove said:

Welcome aboard! :)
# July 19, 2003 6:52 AM

Brian said:

Tosh, that's much better than mine. Didn't even think to use search, but I think by setting the value to the orig AFTER you find the index, causes the caret to move to the beginning of the field. Definitely don't want that behavior.
# July 19, 2003 1:20 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)