Solved

TextBox Functions-Lyric Editor

Posted on 2004-08-25
8
226 Views
Last Modified: 2010-05-02
Im trying to make a lyric editor. I need a

1) a way to get the text where i click in the textbox and to be able add "[00:36]" to the where i click.

Say text box is full like this;

Beatles - Yesterday

[00:05]Yesterday, all my troubles seemed so far away
[00:13]Now it looks as though they're here to stay
Oh, I believe in yesterday.  <==if i click here i want to be able to change the text from this to

=>>>[00:17] Oh, I believe in yesterday

How do i go about doing this.
0
Comment
Question by:gerrymcd
  • 5
  • 3
8 Comments
 
LVL 8

Expert Comment

by:mladenovicz
Comment Utility
If you use text box, set Mulyiline property on true, or you can use Richtext Box control
0
 
LVL 8

Expert Comment

by:mladenovicz
Comment Utility
Multiline property
0
 
LVL 2

Author Comment

by:gerrymcd
Comment Utility
I know that but;

1)how to i get text at a line number in the textbox
2) and how do i change this text at a given line number
0
 
LVL 8

Expert Comment

by:mladenovicz
Comment Utility
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 8

Accepted Solution

by:
mladenovicz earned 125 total points
Comment Utility
YOu have an example here http://www.developersdomain.com/vb/codedownloads/textboxfeatures.zip

1) MsgBox LineAt(Text1, CurrentLinePos(Text1))
2) Dim ss As String
    ss = LineAt(Text1, CurrentLinePos(Text1))
    Text1.Text = Replace(Text1.Text, ss, "[0:32]" & ss)
0
 
LVL 2

Author Comment

by:gerrymcd
Comment Utility
So how do i change the text at a given line?  is there an SET Text APi call?
0
 
LVL 2

Author Comment

by:gerrymcd
Comment Utility
thanks thats just what i needed!
0
 
LVL 8

Expert Comment

by:mladenovicz
Comment Utility
You're welcomed ;)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now