I want to Control another programs two textboxes. Im currently having trouble with checking to see if the Window Caption is the right window by searching the window caption for "DR" I was very famliliar with the Mid() instr() right() left() functions for vb6 however it's been a year or two since i've palyed with it and dont know how to use these functions in .net. I know that you shouldn't or can't use those functions in .net so what should be used? i've tried the .substring which I can get it to only give me the handles for application windows captions that have a "[" at the beginning but now I need to search within those windows for specific words or letters.