I want to write a if condition in TestComplete using C#
script to check if a dialogue exits.
Actually, if you search for the various "Wait" functions in the help, you should find some examples. Going by your previous posts, you'll probably be most interested in "WaitWinFormsObject".
Automated Testing Evangelists
Definition expert - noun - Unknown drip under pressure