Solved

TextBox Functions-Lyric Editor

Posted on 2004-08-25
8
234 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
 
LVL 8

Expert Comment

by:mladenovicz
ID: 11891009
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

930 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

15 Experts available now in Live!

Get 1:1 Help Now