insert multi dates alarm in c#

im trying to do multi dates alarm but i don’t know the code that can make it possible private void timer1_Tick(object sender, EventArgs e) { DateTime currentTime = DateTime.Now; DateTime alarmTime = dateTimePicker1.Value; if (currentTime.Hour==alarmTime.Hour && currentTime.Minute==alarmTime.Minute && currentTime.Second == alarmTime.Second) { timer1.Stop(); pictureBox1.Visible = true; in DateTime alarmTime = dateTimePicker1.Value; i want to put… Read More insert multi dates alarm in c#

Adding the value (integer) of a variable to a control name (PictureBox) in Windows Forms?

All my picture box controls are named the same beside the number at the end. Since I made it this way, is it possible to match an int value to the end of the PictureBox name and save copy/pasting some code? My code https://i.stack.imgur.com/jyHS5.png >Solution : Two ways to do this: One way is to… Read More Adding the value (integer) of a variable to a control name (PictureBox) in Windows Forms?

How do i create a method or function in C# that can reduce the stock in the database as it is being sold in the supermarket

Am developing a C# windows desktop application in Visual Studio and am literally stack with regards to how i should phrase my code when it has been sold in my supermarket system so that it reduces the available stock in the database any assistance rendered will be much appreciated I tried with this Sql but… Read More How do i create a method or function in C# that can reduce the stock in the database as it is being sold in the supermarket

List<Radio Buttons> in my C# program causes errors? Index always out of range?

For my program I am creating a register system to mark attendance for students. I start by taking the students in list student and creating a panel for each with an accompanying name textbox. the next step is to add 3 radio buttons to each panel however it doesn’t seem to work as intended and… Read More List<Radio Buttons> in my C# program causes errors? Index always out of range?