Basim
Basim
CC#
Created by Basim on 12/28/2022 in #help
❔ User control form
this user control is in a for loop thats why it shows multiple times with differnt lable
11 replies
CC#
Created by Basim on 12/28/2022 in #help
❔ User control form
this is what it looks like
11 replies
CC#
Created by Basim on 12/28/2022 in #help
❔ User control form
11 replies
CC#
Created by Basim on 12/28/2022 in #help
❔ User control form
the button is made on the user control form
11 replies
CC#
Created by Basim on 12/28/2022 in #help
❔ User control form
form.ShowDialog(); this here shows 3 different cinema theatre but it opens 3 times when i press book once instead it should assign the 1st theatre to the first book button 2nd to the 2nd book button and so on
11 replies
CC#
Created by Basim on 12/28/2022 in #help
❔ User control form
count is the number of movies
11 replies
CC#
Created by Basim on 12/28/2022 in #help
❔ 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
11 replies