Media Player And RichTextBox - Highlight The Text Being Played And Auto-scroll When It Plays The Next Line
Feb 9, 2011
I am trying to build a language tool, basically I am getting lines of text into a richtextbox and playing the audio for that line. Things are working great except that I want to highlight the text being played and autoscroll when it plays the next line. how to implement the line highlighting and autoscrolling.
View 2 Replies
ADVERTISEMENT
Jul 8, 2009
i used to code with vb6 but now im using the new windows 7rc so im trying the new .net
Anyway So i uploaded a few songs to my webhost and i would like to play them in media player i know i can do this (Ply1.url = "blah.com") but how would i play the next song on my server as if i add one more track to it. it just seems to play the first and with no next button
View 3 Replies
Aug 5, 2009
I have created a small media player calling COM component of Windows media player. Now i want to cut and save the audio files played in media player? is it possible with windows media player or i would have to use some other media player object? I can have the files info which i am using in window media player to play..but cant able to get the details which we can finds with our OS( windows) like compression format, bit-rate etc.
View 1 Replies
Oct 11, 2009
I'm writing a program which plays audio using a windows media player control. It's quite basic but I'm running into a problem.
Soundplayer.Ctlcontrols.play()
Sleep(3000)
For some reason when this appears in my code, the sound doesn't start playing until AFTER the sleep. I have music running in the background, using another windows media player control, that continues playing just fine.
Basically, I want nothing else to happen for the duration of the sound, hence the sleep, so how can I make it so my sound starts playing BEFORE the sleep?
View 7 Replies
Oct 19, 2010
I need to get a button to enter the applications subfolder and randomly select 1 file to be played in the windows media player COM which i have put in the form. I have tried creating a shuffling playlist but i cant get it to stop after one file is played (it just goes on shuffeling to another file, and i really do not want a playlist). I manage to create a batch file to be started to randomly pick a file in that folder, but when i do this the file is being played in the systems default player..
View 2 Replies
Dec 9, 2009
i'm implementing search on a richtextbox and i want to auto scroll up/down left/right when needed. i tried ScrollToCaret but it always scrolls. even when the searched text already presented on the shown part of the text.
View 2 Replies
Jun 9, 2011
make media player in vb6 or vb2010.. not using windows media player..
View 1 Replies
Jun 5, 2009
I wonder is there any way to highlight a line in a richtextbox once the user hovers the cursor over it and get its value? I am also looking for a way to define the colour of the selection (e.g., blue, balck, etc)
View 2 Replies
Mar 21, 2010
i've created a project to highlight a few line in richtextbox1.but why cant i highlight the last line?below is my code:[code]
View 3 Replies
Apr 27, 2009
After I add tons of text lines on RichTextBox, I need to select any line(s) by just clicking this line. After that this line is highlighted. Then I click one button to remove this line. How to do that? (the starting character for each line is the same)
View 9 Replies
Mar 10, 2010
i have 2 richtextbox,which will be compared with each other;array by array. if those array are same with each other;array1(3)=array2(3); then i will just display "*********" in another RTB3.but then if there are any differents between array1 and array 2, i will display error and state at which line does the errors occur.Next,i will highlight the error line in RTB1.and here is my problem.
i knew that i should use command below to complete the pogramme,but the part selection start,i dont know how to full fill it:
Richtextbox1.selectionstart =XXXXXXXXXXX
richtextbox1.selectionlength = array1(i).length
richtextbox1.selectionColor = Color.YellowGreen
View 2 Replies
Jun 22, 2010
i'm trying to create a rogramme that will compare the arrays between richtextbox1 and richtextbox2. if there is any error(s),then i will highlight the current array line in the richtextbox1. e.g.,if array1(7) <> array2(7) then i will highlight only array1(7) which is in the richtextbox1.how can i do this...? I know already that i should use command beloow to settle the problem but
View 1 Replies
Feb 7, 2011
I am new to programming- basically I have a richtextbox1 with some data from the database,but when you scroll it scrolls 3 lines, whereas I want to scroll only one line at a time.
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
Dim mySelectQuery As String
[code].....
View 2 Replies
Nov 9, 2011
I am using the WindowsMediaPlayer. I disabled the Controls , and created my own. I want to use a Trackbar to slide throug the media being played.This works, for moving
Private Sub TrackBar2_Scroll(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TrackBar2.Scroll
LenOfVideo = AxWindowsMediaPlayer1.currentMedia.duration
TrackBar2.Maximum = LenOfVideo
[code]....
But i need the trackbar to track of the position of the video while playing.It stands still now. I need it to be updated.
View 1 Replies
Feb 13, 2011
I would like to display text like my company name on the window media player. I use DrawString function on Form onPaint event but it is covered by the window media player. I also use Label control but it display square block on the player control even i set the back color to transparent. I develop KTV system it has two monitor one has form controls and another has player.
View 1 Replies
May 28, 2012
I am currently making a Syntax Highlighter.How can I highlight certain text inside a RichTextBox ? I am Currently Using This Code :
Public Function Highlight(ByVal highlightcolor As String, ByVal ParamArray WordsToFind() As Object)
'Loop through all the words you specified:
For i As Integer = 0 To UBound(WordsToFind)[code].....
but it will only Highlight 1 of the word I set / Change the whole text into the selected colour
Example :
'I wanted to Highlight "Hello"
'I put this code into RichTextBox_TextChanged:
Highlight("blue","Hello")
'And It will Only highlight The First "Hello" inside my Text :
'Hello my name is XXX, Hello
And, can I Highlight text between certain text / after certain text
Example :
'Highlight After the '
Or :
<!-- Highlight between these 2 tags -->
View 11 Replies
May 1, 2009
How can I get a RicHTextBox to Multi Highlight selected text? [code]
View 5 Replies
Dec 27, 2009
I am trying out the windows media player control within the VB design view, and I tried to add an .avi file to it. When played however it does not show the video, and plays the sound with the visualiser effects instead.
View 11 Replies
Jun 28, 2011
Public Class EasyPlayer
Private Sub EasyPlayer_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
System.Diagnostics.Process.Start("MediaPlayer")
End Sub
[code]....
View 1 Replies
Apr 10, 2009
I want to know that how to add FLV payer component in VB.Net..cz windows Media Player doesn't play the FLV player.
View 2 Replies
Jun 22, 2010
I want to make a deskband app that displays some text and buttons like windows media player when minimized on taskbar. What is the necessary imports / dll i need to use ?
View 1 Replies
Oct 27, 2009
I have created a media player (vb.net 2005) using the media player control. Plays fine when using open dialog box and url. I have set my player as the default player but when I click on a media file, the player will open but not play. I am sure it has to do with on open event and coding the url to see the selected file just like any other media player out there.
View 14 Replies
Aug 13, 2009
i am using following code to play a mp3 with build action for mp3 after adding to application is set to copy always...
Public
Class Form1
ivate Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
[code].....
View 4 Replies
Dec 6, 2010
So iv tried converting this code into vb.net from vb6, but whenever I run this application I get the following error "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." on the underlined line.
Public Class Form1
Private Const SB_VERT = 1
Private Const WM_VSCROLL = &H115
[Code].....
View 2 Replies
Dec 7, 2011
how do you make a richtextbox scroll down automatically when text fills the screen so that the new line can be seen,
View 2 Replies
Sep 10, 2010
I'm having a problem where I have elements such as Listboxes and Rich Text boxes that I want to set to size automatically in xaml according to the size of the window, but I only want it to resize to the size of the window and then put scrollbars if the content is any bigger than that.
Unfortunately, the only way I can get scroll bars to work is if I set a specific height of the listbox/rich text box (which does not work because I want it to automatically resize to the height of the grid that it is contained within, which is generally the height of the window (auto).
View 1 Replies
Aug 26, 2010
I have a richtextbox with a large file inside....I want to be able to search for "Fornication" within the text (KJV Bible) and have every instance of that word to pop up into another richtextbox along with the scripture it is in.
View 1 Replies
Jun 12, 2011
I am loading several command buttons into it (one in each grid box). I have the panel set to autoscroll. When TableLayoutPanel is set to AddColumns, all works well. However, I dont want horizontal scroll, I want vertical. When I set TableLayoutPanel to AddRows, a vertical scrollbar will not appear.
View 4 Replies
Apr 12, 2010
I am currently using windows media player as the control I use which plays media (video's and music). It is great and does everything that I want it to apart from play flv files. I am actually desperate to find a control which does this now. Windows media player is brilliant as it has visualizations etc. Does anyone know a control which plays flv files, which excludes realplayer as that control is bad.
View 1 Replies
Jan 24, 2010
How to add text to new line in a RichTextBox?
View 2 Replies