devxlogo

October 10, 2007

Use the UseWaitCursor Property to Change Cursors

The System.Windows.Form class’s UseWaitCursor property sets the window’s cursor to an hourglass. It is a Boolean property. The Application class also contains a UseWaitCursor property, which sets the UseWaitCursor property

Determine Prime Numbers with XQuery

Did you know you can determine if a number is prime by calling an XQuery query? Here’s the code: &ltprime_numbers&gt { for $a in (1 to 50) return( if(not(some $counter