Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

TextBox Functions-Lyric Editor

Posted on 2004-08-25
8
250 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
ID: 11890928
If you use text box, set Mulyiline property on true, or you can use Richtext Box control
0
 
LVL 8

Expert Comment

by:mladenovicz
ID: 11890930
Multiline property
0
 
LVL 2

Author Comment

by:gerrymcd
ID: 11890980
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
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 8

Expert Comment

by:mladenovicz
ID: 11891009
0
 
LVL 8

Accepted Solution

by:
mladenovicz earned 125 total points
ID: 11891064
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
ID: 11891065
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
ID: 11891076
thanks thats just what i needed!
0
 
LVL 8

Expert Comment

by:mladenovicz
ID: 11891123
You're welcomed ;)
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

861 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