split 1 string into 2

Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
2 posts Page 1 of 1
Contributors
User avatar
froza
Just Registered
Just Registered
Posts: 7
Joined: Thu Feb 24, 2011 4:56 pm

split 1 string into 2
froza
hi, I have a string here which is suppose to be a mouse location coordinat:
225/118
I wanted to split it into x and y as the function only supports the following format :
Code: Select all
Windows.Forms.Cursor.Position = New System.Drawing.Point(x, y)
I'm using the "225/118" in a listbox to record the user's mouse position for every 10 seconds and I've made the listbox to scroll down automatically so when the listbox hits "225/118", it must point the cursor to it.
User avatar
bisnes_niko
Serious Programmer
Serious Programmer
Posts: 409
Joined: Tue Aug 24, 2010 1:21 pm

Re: split 1 string into 2
bisnes_niko
Hi
Code: Select all
Windows.Forms.Cursor.Position = New System.Drawing.Point(listbox1.selecteditem.split("/")(0), Listbox1.selecteditem.split("/")(1))
2 posts Page 1 of 1
Return to “Tutorial Requests”