Use the debugger; and you will see what's going on. From your description, it looks like your method
Login
is called more than once. The issue here is: you don't show in your code what do you do per instance and what per class. Say, it's not shown if
first
is static or not. Certainly, calling the method with the call to
InitializeComponent
on the same instance more than once is the apparent bug, and calling it on the same class is the bad code design style, in most cases.
By the way, please see my article on related topic:
Wish You Were Here… Only Once[
^].
—SA