How to get extension of file in VB.NET

dim strExt as string = io.Path.GetExtension(txtFile.text)