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 of all open Forms in the application. Set it to false to change the cursor to the default shape. For

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 in (2 to ($a – 1)) satisfies $a mod $contor=0)) then {$a} else {$a} ) } And here’s a fragment