Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

TextBox Functions-Lyric Editor

Posted on 2004-08-25
8
Medium Priority
?
270 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
[X]
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
  • 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 8

Expert Comment

by:mladenovicz
ID: 11891009
0
 
LVL 8

Accepted Solution

by:
mladenovicz earned 375 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…
Suggested Courses

636 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