The event on clicking on the button does not work (It exists, all the name is the same) What to do?
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WindowsFormsApp1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { } private void textBox1_TextChanged(object sender, EventArgs e) { } private void button1_click(object sender, EventArgs e) { MessageBox.Show("Привет"); } } }
Clickwould be capitalized (and in new versions of the Studio bothButtonandTextBoxalso big). So you obviously manually changed something somewhere. - Alexander PetrovОна существует, все название совпадают- the code is better than a thousand words, show the code in which the button is created and the handler is bound to the event. - default locale