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:
Code:
const string myDevice = @"vid_04d8pid_003f";
but the following:
Code:
 Boolean test;                
test = devPathName.Contains(myDevice);
statusLabel.Text += "\n\tThe value of test: " + test.ToString();
always evaluates to false.