I have the following string: \\\?\hid#vid_04d8pid_003f#62edf110800000#{4d1e55b2-f16f-11cf-88cb-001111000030}
stored in a string variable (from a function call) called devPathName
and the following defined: const string myDevice = @"vid_04d8pid_003f";
but the following code always evaluates to false:
Boolean test = true;
test = devPathName.Contains(myDevice);
statusLabel.Text += "\n\tThe value of test: " + test.ToString();