His code does not work well with transparent forms or opaque forms