Tip Bank

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

Monitoring AWT Events with the AWTEventListener Class

The AWTEventListener class’ sole purpose is to view events. All you have to do is to implement the eventDispatched method. The following application demonstrates how: import java.awt.*;import java.awt.event.*;public class EventTest

DevX - Software Development Resource

Checking on Daylight Savings Time

Checking for Daylight Savings Time is one of the most common date checks developers perform. .NET provides an easy method to do this. In .NET 1.1, use the Timezone class’

DevX - Software Development Resource

Calling an SAP Function Module from Java

To call an SAP function module from a Java application, you first need SAP JCo (Java Connector); you can download it from SAP’s site, though you need an account to

DevX - Software Development Resource

Insert an XML Schema into an XQuery Query

Use the following code to insert an XML Schema into an XQuery query. The following code assumes that the XML Schema is: file:///C://Data_Local//xml//docs//AirWings_xslt_xmlschema.xsd and the XML file is: file:///C://Data_Local//xml//docs//AirWings_xpath_xslt.xml Import

DevX - Software Development Resource

Show() vs. ShowDialog() in .NET

The form class’ ShowDialog method functions differently than its Show method. Here’s how: ShowDialog‘s returned value can be used to determine how the user closed the form (using the DialogResult