Basim
❔ User control form
StreamReader read = new StreamReader(@"C:\Users\musht\source\repos\WinFormsApp2\Movies.txt");
int count = int.Parse(read.ReadLine());
for (int i = 0; i < count; i++)
{
var button = (Button)sender;
button.Tag = i;
var identifier = (int)button.Tag;
var form = new BookTime(identifier);
form.ShowDialog();
} i have this code in my book click event
} i have this code in my book click event
11 replies