... IV: Programming a
Graphical User Interface
Hour 13. Building a Simple
User Interface
Swing and the Abstract
Windowing Toolkit
Creating Class Variables
Creating Behavior with
Methods
Putting One ... II. Learning the Basics of
Programming
Hour 5. Storing and Changing Information
in a
Program
Statements and Expressions
Assigning Variable Types
Naming Your Variables
Storing Information in Variables
Workshop: ... Describing What Your Object Is
Like
Creating Variables
Creating Class Variables
Creating Behavior with Methods
Putting One Class inside Another
Using the this Keyword
Hour 21. Reading and Writing...
...
(Sams) ; ASP.NET Data Web Controls Kick Start (Sams) ; TeachYourself ASP.NET in24Hours
(Sams) ; TeachYourself ASP.NET 2.0 in24Hours (Sams) ; and TeachYourself ASP.NET 3.5 in24
Hours (Sams) .
Scott’s ...
We’ll examine adding and working with Web controls in more detail later in this
hour; starting with Hour 8, “ASP.NET Web Controls for Displaying Text,” we’ll spend
significant time examining the ... Choices with
RadioButton Web Controls 233
Using the CheckBox Web Control 238
Q&A . 243
Workshop . 244
HOUR 12: Validating User Input with Validation Controls
247
Examining the Need for User Input...
... 69
Working with Strings 69
Working with Colors 70
Working with Dimensions 71
Working with Drawable Resources 72
Working with Images 72
Working with Other Types of Drawables 73
Working with Layouts ... to Java, we would recommend Sam’s
Teach YourselfJavain24Hours by Rogers Cadenhead and Thinking inJava by
Bruce Eckel, 4th Edition in Print (3rd Edition free from http://goo.gl/tYoXd)
books ... Layouts 74
Designing Layouts Using the Layout Resource Editor 74
Designing Layouts Using XML 75
Working with Files 77
Working with XML Files 77
Working with Raw Files 78
Working with Other Types...
... III: Working with Data
HOUR 13 Using Files and Streams. 289
14 Working with XML . 311
15 Working with Databases . 329
Part IV: Building an Application Using Visual Studio
HOUR 16 Debugging in Visual ... 0-672-33101-2
Library of Congress Cataloging -in- Publication Data
Dorman, Scott, 1973-
Sams teachyourself Visual C# 2010 : in24hours / Scott Dorman.
p. cm.
Includes index.
ISBN 978-0-672-33101-5
1. ...
floating point up to
15–16 digits
±5.0 × 10
– 324
to ±1.7 × 10
308
float Single
Single-precision 32-bit
floating point up to
7 digits
±1.5 × 10
–45
to ±3.4 × 10
38
int Int32
Signed 32-bit integer...
... tailor the information on a page just for printing, in addition to
normal web viewing?
. Hours 10 through 12 introduce you to multimedia applications and their use, including where
to find industry-standard ... 360
Writing Maintainable HTML Code 364
HOUR 24: Helping People Find Your Web Pages
Publicizing Your Web Site 371
Listing Your Pages with the
Major Search Sites 373
Providing Hints for Search Engines ... Padding,
Alignment, and Floating
Using Margins 212
Padding Elements 219
Keeping Everything Aligned 223
Understanding the Float Property 224
HOUR 15: Understanding the CSS Box Model
and Positioning
The CSS Box...
... Cataloging -in- Publication Data
Darcey, Lauren, 1977-
Sams teachyourself Android application development in24hours / Lauren Darcey, Shane
Conder.
p. cm. — (Sams teachyourselfin24 Hours)
Includes ...
displays a string. In this case, the string displayed is defined in the string resource
called @string/hello.
To edit the string resource called @string/hello, using the string resource editor, ... 418
Organizing Code 418
Fun with Refactoring . 418
Resolving Mysterious Build Errors. 420
Creating Custom Log Filters . 420
Moving Tabs Around . 421
Integrating Source Control 421
xii
Teach Yourself...
... 139
vi
Sams TeachYourself Facebook for Business in 10 Minutes
4
Introduction
As part of the SamsTeachYourselfin 10 Minutes series of guides, this
book aims to teach you the ins and outs of using Facebook ... business use of your page. Therefore I only
cover apps briefly, in Lesson 3, “Finding and Installing Apps.” For
information about using apps in your personal Facebook Page, see
Sams TeachYourself ... in this kind of manner.) Leave
the sign-on details with a couple of people you trust in case you
fall ill, or in case you are, in the inelegant phrase often used in
business continuity planning,...
... 205
Showing the User 208
Saving and Loading the Drawing 213
Deleting the Current Drawing 214
Saving and Restoring the Drawing 215
Interacting with the Menu 218
Adding Color to the
CLine Class ... 3ALLOWING USER INTERACTION—INTEGRATING THE MOUSE AND KEYBOARD
IN
YOUR APPLICATION 47
Understanding Mouse Events 48
Drawing with the Mouse 49
Improving the Drawing Program 53
Adding the Finishing ... Information 681
Using Remote and Just -in- Time Debugging 683
Tracing and Single Stepping 685
Using the
TRACE Macro 685
Using the
ASSERT and VERIFY macros 687
Using Breakpoints and Single Stepping the...
...
The Windows Scripting Host defines interfaces that are implemented by scripting
engines. Consequently, the same scripting engine can be used in any application that
can use the scripting interface ... occurrence in the book.
WSH is an intrinsic part of Microsoft Windows 98, Windows 2000, and Windows NT 5.0.
For earlier versions such as Windows NT 4.0 or Windows 95, you can install a free
operating ... program or the Windows-interface wscript program. When
you use either, it finds the appropriate scripting engine to interpret your script by
examining the Windows
Registry. The following steps are...
... operating system or file system. The only interaction with the
system is via the msgbox() function for displaying a message and the
inputbox()function for requesting user input.
The VBScript interpreter ... in itself is a subset of Visual Basic, that meet the functionality
required while maintaining performance and keeping the interpreter as small as
possible.
Because VBScript was first used in ... string.
ReadLine()
This reads an entire line from an open text file.
Skip(characters)
This skips a specified number of characters within the
open text file.
SkipLine()
This skips the next line...
... single-line and multiline. A single-line comment begins with a pair of forward
slashes (//) and indicates that the remainder of the line is a comment. Following is an
example of a single-line comment:
var ... http://www.simpopdf.com
As exciting as variables might be, they aren’t incredibly useful in and of themselves.
JScript programming gets much more interesting when you inject logic into your scripts.
Program ... created with minimal user influence, the
.WSH file is nothing more than a simple text file containing information about the
preferences you have set. Its content is very similar to the .INI files...
... of the INI file,
reading one line
’ at a time.
’
’ Each line in the INI file is expected to either be
a comment,
’ and begin with ’a’, or is expected to be a setting
definition
’ in the ...
Dealing with Bugs
Although debugging certainly plays a vital role in eliminating bugs from your scripts,
there is another line of defense that in many ways is more valuable. I’m referring to ... trying to
take medicine for an illness after the fact, you try to avoid getting sick in the first place.
Bug prevention in scripting works in a similar way by trying to initially avoid introducing...
... settings in both .ini files and in
the Windows Registry. Later in this chapter, you use the WSH TextStream objects to
change .ini settings, and the WshShell object to change Registry settings.
Shortcuts ... Sub
In the preceding script, you’ve added error checking to determine whether a drive
mapping succeeded. This time, instead of directly calling the
WshNetwork.MapNetworkDrive() method in the ...
Defining User Login Scripts
Defining user login scripts is easy; they are simply standard WSH scripts. Listing 11.1
provides a basic Hello World login script.
Listing 11.1 Hello World Login Script
//...
...
Table.BeginAlter() method. Table.BeginAlter()
prepares the table
for a batch of changes. Then, you insert the new column into the table using
the Table.InsertColumn() method, and finally, you ... after running the makfldr.vbs script.
Deleting a Folder
Deleting a folder is just as simple as the preceding examples. Listing 11.15
uses the FileSystemObject.DeleteFolder() method instead of ... Logging—current logging settings.
[Website]
This is the number that corresponds with the Web site that you
want to access. The default Web site can be accessed using the
number 1.
Root
This indicates...