Search results for query: *

  • Users: poe
  • Order by date
  1. P

    If media player current position is...

    Hello. I have a windows media player control and then I have a time saved in a text document. I want to show a message box when the current media reaches that time in the text. For example: 8,1234567. So I've added a timer, with the interval 1. Private Sub timer_Tick(ByVal sender As...
  2. P

    Highlight words in richtextbox

    Thanks, it works perfectly now! :D
  3. P

    Highlight words in richtextbox

    Thanks again for your reply. I tried the code but I still get that error. It crashes on the last word on the row. The text is on multiple rows. :/
  4. P

    Highlight words in richtextbox

    Thanks for your reply! It works until it tries to highlight the last word on the row. Then it crashes and gives: InvalidArgument=Value of '-1' is not valid for 'start'. on this line: RichTextBox1.Select(index, words(word).Length)I think it has something to do that there isnt a space after the...
  5. P

    Highlight words in richtextbox

    Hello, I have a rich text box with some text in it. I would like to highlight "the next" word when i click a button. Say that my text is this: Once upon a time Then when i click the button i want "Once" to get highlighted. Then when i click the button again, i want "upon" to get highlighted...
  6. P

    See if XML file actually has XML?

    Oh I see. Thank you very much! :D
  7. P

    Can't add Windows Media Player control.

    Hello, I'm trying to add a Windows Media Player control to VS 2005 but I have some problems. First, I right-click in the toolbox and click "Choose Items...". Then I click the COM Components. But in the list I can't find Windows Media Player. So then I clicked browse, went to System32 folder in...
  8. P

    See if XML file actually has XML?

    Thanks for you reply! I fixed the problem with the Try-Catch thing like you said. Here is the code if anyone wants to see. Dim files() As String = Directory.GetFiles(Application.StartupPath + "\data\lyrics\", "*.xml") Dim rowc As Integer = 0 Try For Each...
  9. P

    See if XML file actually has XML?

    Hello, I'm making a program, and on start up I have so it searches for XML files in a folder, then add the values from each file to a datagrid. Now my problem is that if an XML file happens to be empty my program can't find the nodes and will then crash. So how can I make it first check if the...
  10. P

    Loading XML files into listbox

    Yes but I did it in a completly different way. I changed from listbox to datagrid and went from a single xml file to many. So since the topic name is different I thought it just would get confusing.
  11. P

    Loading XML files into listbox

    Thanks for your reply, but I already made it in another way. ;) So I guess a mod could lock this topic or something since I don't need help anymore.
  12. P

    Loading XML files into listbox

    Deleting XML node if file doesn't exist Oops. The thread name is wrong. I need help with deleting XML nodes if a specific text file is missing. Hello. I'm making a program with song lyrics that you select in a play list and then the lyrics show up in a text box. I store the information about...
Back
Top