Start by avoiding compound statements like that, where you cannot see the results at each step. Use
String.Split
to get an array containing the four fields, then convert each one to its integer value. From that you can use the
String.Format Method (System) | Microsoft Docs[
^] to display them as decimal values. And a minor change would allow you to convert decimal strings to hex.