public void changeEnabledAllItems(bool status) { if (this.ErrorLabel.InvokeRequired) { setThreadedChangeAllActiveCallback changeAllActiveCallback = new setThreadedChangeAllActiveCallback(changeEnabledAllItems); this.obj.Invoke(changeAllActiveCallback, status); } else { this.LoginTextBox.Enabled = status; this.PasswordTextBox.Enabled = status; this.AddressTextBox.Enabled = status; this.PortTextBox.Enabled = status; this.LoginInButton.Enabled = status; } }