public ChatForm(MainForm mainForm) { _mainForm = mainForm; InitializeComponent(); textBoxChatMessage.KeyDown += textBoxChatMessage_KeyDown; }