Split a String into 2 Variables

split, string, textbox, vb.net

Solution

Dim words As String() = textbox1.text.Split(":")
Dim user as String =  words(0)
Dim pass as String =  words(1)

Problem

What I'm trying to do here is Capture 2 Variables from a Textbox Here is an example of whats going to be in here. `User:Pass` I want to declare everything before the `:` as user and everything after the `:` as pass. I've Googled, and found a few things, but I couldn't seem to get it working fully.

Original source