Is strcmp the only option? I've seen other postings saying == is suitable but I couldn't get it to work in my case.
What is the easiest way to convert textBox1 text string to array of char? I need to do this because the strcmp arguments only accept char.
txtPassword and setPassword are pointers to System::String objects.
You have to dereference them to compare what they're pointing to:
if (*txtPassword == *setPassword)
Your code is comparing the two pointers, which are always going to be different.