Thanks. That helped me out. I used outLine.Date.SubString(1).Split(" ")(0))
Now I have another problem. When I close the application, the process still runs. I tried making a OnFormClosing, with p.kill(), and of course I made p a public variable so it can be used. But it will now kill the task nor will it close the window.
I first found this issue when I kept on running the application to see how the plit fucntion worked, and I experianced some lag issues with everything else, so I opened up the task manager, and I hade 122 processe running. About 50 of them were all x264, and just end the process through the taskmgr, did not work. I then had to uese the command prompt to end them, Taskkill /f /im x264*. So would you be able to help me out on how I can end the task if it is running on the window close?
I also have a problem with using substring.
It is not a major problem. Right now I have to parts of that line that I am splitting up, 0.0% and 100/100000 . For me to get the second part there, I have to use substring 12, and that is fine. But when the 0.0% gets to be 10.0% nothing
will be shown because the space is the 12 character. I also forgot to mention that I then used split(" ")(0) so everything after the 100/100000 would be gone. Is there any way that I can remove everything before a specific character or word instead
of character position? For example.
Say I had 9.9% 27/127598 Frames
and I all I want is 27/127598
Using substring to my known knoledge of it so far, it I set it to 5 it will work for until the percentage gets to 10.0% and higher. Once it gets to 10.0%, nothing will be shown. The code that I would use to show just that part just for when
it is under 10.0% would be:
outLine.Data.SubString(5).Split(" ")(0)
If you need me to explain better, I can try and if I can't I can upload a video to youtube of what I mean.