... >
Using the Key Class to Add Interactivity
The Key class is a useful tool for capturing key events from the user (that is, user
interaction with the keyboard). You can employ the Key class ... use of the Key class is to determine whether a specific key is pressed.
You would use this syntax to determine whether a key is being pressed:
Key...
...
Using the Get* Methods to Read Column Values
Before I show you the other Get* methods that read column values, you need to know the
standard C# types and the values they support. You need to ... C# type. You use this table to figure out which
method to call to get a specific column type. For example, if you need to get the value of
a bigint column, you call the...
... as shown in the following example using the OLE DB
provider.
The sample code defines a SHAPE query to retrieve the TOP 5 Orders from Northwind
and the Order Details for each of the Orders. ... DataReader based on the query is created.
The code iterates over the rows in the DataReader displaying the data for each Order row.
If the value for the column can be ca...
... _root.gotoAndStop("Register");
9.
10. };
11.
This script adds an onRelease event handler to the register_btn button instance.
The user clicks this button to go to the register frame to ... text fields are
used to format an XML document. That XML document is then sent to the
AddUser.asp page to be parsed, and the relevant content is added to the da...
... identical to the script used to assign the onRelease callback to the red
b
utton, except for the color value used in the setRGB() method, the value of which
is the hex value for the yellow in the ... 16 value, then
convert it to a string, and then do the same thing with G and B. Using the plus (+)
operator to put the converted values together, the var...
... LoadVars
object. Using an expression, the URL of the Poll.asp page is specified (pollURL),
and the variable choice is added to the end of the string to send this to the server
using the GET method ... click the Submit button, your choice is sent to the Poll.asp page, which
updates the database and returns the results of the poll to the poll LoadVars...
... until the user
responds.
If the value of result is true, the user has a printer and has chosen the Print option. It's
then time to use the addPage() method of the PrintJob class to add the ...
we're done with it.
The last thing we need to do is add the script to enable the user to navigate the
animal images.
9. At the end of the curr...
... column named CustomerID that is a foreign key
to the CustomerID column of the Customers table (CustomerID is the primary key for the
Customers table). The use of the foreign key defines a parent-child ...
shows the completed form up and running. Notice that the top part of the form shows the
details for the row from the Customers table where the CustomerID...
... All The Cancel All button allows you to undo any changes you've
made to the current row.
o
Add The Add button allows you to add a new row.
o
Delete The Delete button allows you to delete ... radio button. The other
check boxes in the dialog box allow you pick the controls you want to add to your
form. These controls affect the rows in the maste...
... object (of the class System.Object), and it
represents the object that raises the event.
Note The System.Object class acts as the base class for all classes. In other words, all
classes are ... from the System.Object class.
The second parameter is an object of a class that is derived from the System.EventArgs
class. The EventArgs class is the base class...