You cannot use This because you must be in a static function.
uploadWindow.Owner = this; makes it modal then