private void buttonNewMap_Click(object sender, EventArgs e) { HtmlElement_map map = _webpage.CreateNewMap(); if (map != null) { MessageBox.Show(this, string.Format(CultureInfo.InvariantCulture, "A new map is created and named '{0}'", map.id), "Create map", MessageBoxButtons.OK, MessageBoxIcon.Information); int n = comboBox1.Items.Add(map); comboBox1.SelectedIndex = n; } }