Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / June 2004

Tip: Looking for answers? Try searching our database.

Moving cursor in textbox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Systemspecialist - 22 Jun 2004 13:25 GMT
Hi,
I need to jump in the textbox, for example, to 5th row and 20th column.

Any idea?

Thanks
Paul G. Tobey [eMVP] - 22 Jun 2004 17:03 GMT
There is no concept of row and column in a *text* box.  You'll have to
figure out what character position is your target and move the cursor
there...

Paul T.

> Hi,
> I need to jump in the textbox, for example, to 5th row and 20th column.
>
> Any idea?
>
> Thanks
Robert J - 24 Jun 2004 00:04 GMT
If your rows are defined by a carriage return line feed you can scan the
text for them, and the same could be used
to detect the Tabs if used to sepearate columns.

So 5th row would be after the 4th CRLF and then count 19 Tabs to get to the
20th Column.

Robert

> There is no concept of row and column in a *text* box.  You'll have to
> figure out what character position is your target and move the cursor
[quoted text clipped - 8 lines]
> >
> > Thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.