private void btnConnect_Click(object sender, EventArgs e) { string user = txtUser.Text; string pass = txtPass.Text; string connection = user + "," + pass; MQOEvents.RequestLogin(connection); }