|
Author: Jenny Nguyen
|
|
In C# if you want to keep your windows application sits on top of all other windows screen then you could use the TopMost property. Here's is the sample code. using System; namespace TAW C#: How To Compare Two DateTime Object When working with calendar or the datetime information in C# we often need to perform a datetime comparison to see which date is larger then the other. Here's how you can do it: To perform a comparison we need to use the static Compare method from the DateTime object DateTime.Compare(DateTime obj1, DateTime obj2). The method will return the following value: < 0 - obj1 is ealier then obj2. 'Send an email if the Meeting time is later then the current time.
|