Putting a Close()
directly in the OnActivate
event of a form sounds adventurous.
What is the point of a form when you have no chance of using it? Consider moving this to a different event.
mein Ziel ist,wenn ich auf (ok) Button von MessageBox clicke,Die Form close??