private void AutoriCautati_Click(object sender, EventArgs e) { var ctx = service.GetAllWantedAuthors(); string content = "Autorii cei mai cautati \n"; for (int index = 0; index < ctx.LongCount(); index++) { content += "\tAutor " + (index + 1) + ": " + ctx[index] + "\n"; } MessageBox((IntPtr)0, content, "Message Box", 0); }