Whenever I cross national borders--usually at airports--I dress up in suit and tie even when travelling with my partner who usually dresses more casual. This has been pretty successful so that even the US agents (I am now a US citizen, former German) have waved us through after only a couple of questions.
My experience with canada other than having to wait in line at times has been great: very polite at immigration with normal questions and no stopping at customs.