-
-
- private void button1_Click(object sender, EventArgs e)
- {
- PopupForm popup = new PopupForm();
- DialogResult dialogresult = popup.ShowDialog();
- if (dialogresult == DialogResult.OK)
- {
- Console.WriteLine("You clicked OK");
- }
- else if (dialogresult == DialogResult.Cancel)
- {
- Console.WriteLine("You clicked either Cancel or X button in the top right corner");
- }
- popup.Dispose();
- }
Hi Team
I want to create a button that will call windows form, the form must have textfield(year, week) these two fields need to write inputs to the record(table) in the database. Are there any examples around this? please share thanks.