C# Introduction Part 11 - Foreach Loops

preview_player
Показать описание

By Andrew Gould

You can download the files used in this tutorial series from the following page.

Рекомендации по теме
Комментарии
Автор

Hi, I have been watching your great tutorials for over a year now, keep up the good work. I have a problem I don't seem to figure out. How can I access controls (checkBox and label) inside dynamically generated gridview using IF inside  foreach loop? The idea is to check the database for time overlap, and if found to make label visible true and checkbox false. I got it working up to the point of checking for time overlap and toggle the checkbox and label visibility. but it does not iterate through the individual rows. The outcome is either all labels are visible and checkbox not visible, or the other way around. What I need is to access the controls in the individual rows that time overlap it found in, and make label visible and checkbox not visible.  Is that possible?

tedwoldeselassie
Автор

Is there a way to close a form after a specified period time of inactivity from a user, in much the same way your screen saver would activate. 

dukestt
welcome to shbcf.ru