110283764
110283764
https://ebooknice.com/product/visual-basic-in-easy-steps-covers-
visual-basic-2015-55141882
(Ebook) Visual Basic in easy steps: Covers Visual Basic 2015 by Mike McGrath ISBN
9781840787016, 1840787015
https://ebooknice.com/product/visual-basic-in-easy-steps-covers-visual-
basic-2015-6761498
ebooknice.com
https://ebooknice.com/product/java-in-easy-steps-covers-java-9-50199730
ebooknice.com
(Ebook) Visual Basic in Easy Steps by Tim Anderson ISBN 9780760747889, 0760747881
https://ebooknice.com/product/visual-basic-in-easy-steps-55132350
ebooknice.com
(Ebook) Visual Basic 6 in Easy Steps by Tim Anderson ISBN 9781840780291, 1840780290
https://ebooknice.com/product/visual-basic-6-in-easy-steps-55132328
ebooknice.com
(Ebook) Python in easy steps: Covers Python 3.7 by Mike McGrath ISBN 9781840788129,
1840788127
https://ebooknice.com/product/python-in-easy-steps-covers-python-3-7-42933760
ebooknice.com
(Ebook) Coding for Beginners in Easy Steps: Basic Programming for All Ages by
McGrath, Mike ISBN 9781840786422, 1840786426
https://ebooknice.com/product/coding-for-beginners-in-easy-steps-basic-
programming-for-all-ages-50199684
ebooknice.com
https://ebooknice.com/product/html5-in-easy-steps-5728134
ebooknice.com
(Ebook) C#-Visual Basic Bilingual Dictionary: Visual Studio 2015 Edition by Tim
Patrick ISBN 9780692433690, 0692433694
https://ebooknice.com/product/c-visual-basic-bilingual-dictionary-visual-
studio-2015-edition-10357628
ebooknice.com
https://ebooknice.com/product/sql-in-easy-steps-4th-edition-11359944
ebooknice.com
Mike McGrath
Visual Basic
4th edition
covers Visual Studio Community 2015
In easy steps is an imprint of In Easy Steps Limited
16 Hamilton Terrace · Holly Walk · Leamington Spa
Warwickshire · CV32 4LY
www.ineasysteps.com
Fourth Edition
Copyright © 2015 by In Easy Steps Limited. All rights reserved. No part of this book may be reproduced or
transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by
any information storage or retrieval system, without prior written permission from the publisher.
Notice of Liability
Every effort has been made to ensure that this book contains accurate and current information. However, In
Easy Steps Limited and the author shall not be liable for any loss or damage suffered by readers as a result
of any information contained herein.
Trademarks
All trademarks are acknowledged as belonging to their respective companies.
Contents
1 Getting started
Introducing Visual Basic
Installing Visual Studio
Exploring the IDE
Starting a new project
Adding a visual control
Adding functional code
Saving projects
Reopening projects
Summary
2 Setting properties
Form properties
Meeting the properties editor
Editing property values
Coding property values
Applying computed values
Applying user values
Prompting for input
Specifying dialog properties
Summary
3 Using controls
Tab order
Using Button
Using TextBox
Using ComboBox
Using Label
Using PictureBox
Using ListBox
Using CheckBox
Using RadioButton
Using WebBrowser
Using Timer
Summary
5 Building an application
The program plan
Assigning static properties
Designing the interface
Initializing dynamic properties
Adding runtime functionality
Testing the program
Deploying the application
Summary
6 Solving problems
Real-time error detection
Fixing compile errors
Debugging code
Setting debug breakpoints
Detecting runtime errors
Catching runtime errors
Getting help
Summary
9 Harnessing data
Reading text files
Streaming lines of text
Reading Excel spreadsheets
Reading XML files
Creating an XML dataset
Reading RSS feeds
Addressing XML attributes
Summary
10 Employing databases
An introduction to databases
Designing a database
Creating a database
Adding database tables
Defining table columns
Making table relationships
Entering table data
Creating a database dataset
Adding form data controls
Binding meaningful data
Building custom SQL queries
Summary
1
Getting started
Welcome to the exciting world of Visual Basic programming. This chapter introduces the Visual Studio Integrated
Development Environment (IDE) and shows you how to create a real Windows application.
The New icon pictured above indicates a new or enhanced feature introduced
with the latest version of Visual Basic and Visual Studio.
The evolution of Visual Basic
• Visual Basic 1.0 released in May 1991 at the Comdex trade show in Atlanta, Georgia,
USA.
• Visual Basic 2.0 released in November 1992 – introducing an easier and faster
programming environment.
• Visual Basic 3.0 released in the summer of 1993 – introducing the Microsoft Jet
Database Engine for database programs.
• Visual Basic 4.0 released in August 1995 – introducing support for controls based on
the Component Object Model (COM).
• Visual Basic 5.0 released in February 1997 – introducing the ability to create custom
user controls.
• Visual Basic 6.0 released in the summer of 1998 – introducing the ability to create
web-based programs. This hugely popular edition is the final version based on COM
and is often referred to today as “Classic Visual Basic”.
• Visual Basic 7.0 (also known as Visual Basic .NET) released in 2002 – introducing a
very different object-oriented language based upon the Microsoft .NET framework.
This controversial edition broke backward-compatibility with previous versions,
causing a rift in the developer community. Subsequent editions added features for
subsequent .NET framework releases.
• Visual Basic 8.0 (a.k.a.Visual Basic 2005).
• Visual Basic 9.0 (a.k.a. Visual Basic 2008).
• Visual Basic 10.0 (a.k.a. Visual Basic 2010).
• Visual Basic 11.0 (a.k.a. Visual Basic 2012).
• Visual Basic 12.0 (a.k.a. Visual Basic 2013).
(version numbering of Visual Basic skipped 13 to keep in line with the version
numbering of Visual Studio itself).
• Visual Basic 14.0 (a.k.a. Visual Basic 2015).
Visual Basic derives from an earlier, simple language called BASIC, an acronym –
Beginners
All-purpose
Symbolic
Instruction
Code.
The “Visual” part was added later as many tasks can now be accomplished
visually, without actually writing any code.
All examples in this book have been created for Visual Basic 14.0, although many of the
core language features are common to previous versions of the Visual Basic programming
language.
Installing Visual Studio
In order to create Windows applications with the Visual Basic programming language, you
will first need to install a Visual Studio Integrated Development Environment (IDE).
Microsoft Visual Studio is the professional development tool that provides a fully
Integrated Development Environment for Visual C++, Visual C#, Visual J#, and Visual
Basic. Within its IDE, code can be written in C++, C#, J# or the Visual Basic
programming language to create Windows applications.
Component Requirement
Windows XP
Windows Vista
Operating system Windows 7
Windows 8/8.1
Windows 10
Video Card DirectX 9-capable, and a screen resolution of 1024 x 768 or higher
The Visual Studio Community edition is used throughout this book to demonstrate
programming with the Visual Basic language, but the examples can also be recreated in
Visual Studio. Follow the steps opposite to install Visual Studio Community edition.
Open your web browser and navigate to the Visual Studio Community download
page – at the time of writing this can be found at visual-studio.com/en-
us/products/visual-studio-community-vs.aspx
Check only the Microsoft SQL Server Data Tools feature to be added to the
typical setup, then click Next, Install to begin the download and installation
process
The Visual Studio 2015 setup process allows you to install just the components
you need.
You can run the installer again at a later date to modify Visual Studio by adding or
removing features. The Microsoft SQL Server Data Tools are required by the
database example in the final chapter of this book.
Exploring the IDE
Go to the Start menu, then select the Visual Studio 2015 menu item added there by
the installer
Sign in with your Microsoft Account, or simply click the Not now, maybe later
link to continue
Choose your preferred color theme, such as Light, then click the Start Visual
Studio button
The first time Visual Studio starts, it takes a few minutes as it performs some
configuration routines.
The Visual Studio Integrated Development Environment (IDE) appears, from which you
have instant access to everything needed to produce complete Windows applications.
From here you can create exciting visual interfaces, enter code, compile and execute
applications, debug errors, and much more.
You can change the color theme later – choose the Tools, Options menu then
Environment, General.
The Visual Studio IDE initially includes a default Start Page, along with the standard IDE
components, and looks like this:
Start Page elements
The default start page provides these useful features:
• Start – provides links you can click to begin a new project or reopen an existing
project.
• Recent – conveniently lists recently opened projects so you can quickly select one to
reopen.
• News – feeds the latest online news direct from the Microsoft Developer Network
(MSDN).
You can return to the Start Page at any time by selecting View, Start Page on the
menu bar.
Visual Studio IDE components
The Visual Studio IDE initially provides these standard features:
• Menu Bar – where you can select actions to perform on all your project files and to
access Help. When a project is open, extra menus of Project and Build are shown in
addition to the default menu selection of File, Edit, View, Debug, Team, Tools, Test,
Analyze, Window, and Help.
• Toolbar – where you can perform the most popular menu actions with just a single
click on its associated shortcut icon.
• Toolbox – where you can select visual elements to add to a project. Place the cursor
over the Toolbox to see its contents. When a project is open, “controls” such as
Button, Label, CheckBox, RadioButton, and TextBox are shown here.
• Solution Explorer – where you can see at a glance all the files and resource
components contained within an open project.
• Status Bar – where you can read the state of the current activity being undertaken.
When building an application, a “Build started” message is displayed here, changing
to a “Build succeeded” or “Build failed” message upon completion.
The menus are once again in title-case, rather than the ALL CAPS style of the
previous version.
Online elements of the Start Page require a live internet connection – if the
hyperlinks do not appear to work, verify your internet connection.
Starting a new project
On the menu bar click File, New, Project, or press the Ctrl + Shift + N keys, to
open the New Project dialog box
In the New Project dialog box, select the Windows Forms Application template
icon
Enter a project name of your choice in the Name field, then click on the OK button
to create the new project – in this case the project name will be “GettingStarted”
The New Project dialog automatically selects the Windows Forms Application
template by default as it is the most often used template.
Visual Studio now creates your new project and loads it into the IDE. A new tabbed Form
Designer window appears (in place of the Start Page tabbed window) displaying a default
empty Form. You can select View, and then the Solution Explorer menu, to open a
Solution Explorer window that reveals all files in your project. Additionally, you can
select View, Properties menu to open a Properties window to reveal all properties of
your Form.
The Form Designer is where you can create visual interfaces for your applications, and
the Properties window contains details of the item that is currently selected in the Form
Designer window.
The Visual Studio IDE has now gathered all the resources needed to build a default
Windows application – click the Start button on the toolbar to launch this application.
The application creates a basic window – you can move it, minimize it, maximize it, resize
it, and quit the application by closing it. It may not do much but you have already created
a real Windows program!
You can alternatively run applications using the Debug, Start Debugging menu
options.
Adding a visual control
The Toolbox in the Visual Studio IDE contains a wide range of visual controls which are
the building blocks of your applications. Using the project created on the previous page,
follow these steps to start using the Toolbox now:
Place the cursor over the vertical Toolbox tab at the left edge of the IDE window,
or click View, Toolbox on the menu bar, to display the Toolbox contents. The
visual controls are contained under various category headings beside an expansion
arrow
Click on the expansion arrow beside the Common Controls category heading to
expand the list of most commonly used visual controls. Usefully, each control
name appears beside an icon depicting that control as a reminder. You can click on
the category heading again to collapse the list, then expand the other categories to
explore the range of controls available to build your application interfaces
The Toolbox will automatically hide when you click on another part of the IDE, but
it can be fixed in place so it will never hide, using the pin button on the Toolbox
bar.
Any pinned Window in the IDE can be dragged from its usual location to any
position you prefer. Drag it back to the initial location to re-dock it.
Click and drag the Button item from the Common Controls category in the
Toolbox onto the Form in the Designer window, or double-click the Button item,
to add a Button control to the Form
A Button is one of the most useful interface controls – your program determines
what happens when the user clicks it.
The Button control appears in the Form Designer surrounded by “handles” which can be
dragged to resize the button’s width and height. Click the Start button to run the
application and try out your button.
This Button control performs no function when it’s clicked – until you add some
code.
The Button control behaves in a familiar Windows application manner with “states” that
visually react to the cursor.
Adding functional code
The Visual Studio IDE automatically generates code, in the background, to incorporate the
visual controls you add to your program interface. Additional code can be added manually,
using the IDE’s integral Code Editor, to determine how your program should respond to
interface events – such as when the user clicks a button.
Using the project created on the previous page, follow these steps to start using the Visual
Studio Code Editor:
Double-click on the Button control you have added to the default Form in the
Designer window. A new tabbed text window opens in the IDE – this is the Code
Editor window
The cursor is automatically placed at precisely the right point in the code at which
to add an instruction, to determine what the program should do when this button is
clicked. Type the instruction MsgBox(“Hello World!”) so the Code Editor looks like
this:
Switch easily between the Code Editor and Form Designer (or Start Page) by
clicking on the appropriate window tab.
The Solution Explorer and Properties windows are closed here for clarity. You
can reopen them at any time from the View menu.
Click the Start button to run the application and test the code you have just
written, to handle the event that occurs when the button is clicked
Click the OK button to close the dialog box, then click the X button on the Form
window, or click the Stop Debugging button on the menu bar, to stop the program
Use the View menu on the menu bar to open the Code Editor, Form Designer,
or any other window you require at any time.
Each time the button in this application is pressed, the program reads the line of code you
added manually to produce a dialog box containing the specified message. The action of
pressing the button creates a Click event that refers to the associated “event-handler”
section of code you added to see how to respond.
In fact, most Windows software works by responding to events in this way. For instance,
when you press a key in a word processor a character appears in the document – the
KeyPress event calls upon its event-handler code to update the text in response.
The process of providing intelligent responses to events in your programs is the very
cornerstone of creating Windows applications with Visual Basic.
Saving projects
Even the simplest Visual Basic project comprises multiple files which must each be saved
on your system to store the project.
Follow these steps to save the current New Project to disk:
Click the Save All button on the toolbar, or click File, Save All on the menu bar, or
press Ctrl + Shift + S
To discover or change the save location click Tools on the menu bar, then select the
Options item
Expand Projects and Solutions in the left pane, then choose the General option to
reveal Projects location
You can click File, Close Solution on the menu bar to close an open project – a
dialog will prompt you to save any changes before closing.
Find the Debug folder in your saved project directory containing the application’s
executable (.exe) file – you can double-click this to run your program like other
Windows applications.
Reopening projects
Use these steps to reopen a saved Visual Basic project:
Click File, Open, Project/Solution on the menu bar to launch the Open Project
dialog
In the Open Project dialog, select the folder containing the project you wish to
reopen, and Open that folder
Now, select the Visual Basic Solution file with the extension .sln to reopen the
project, or alternatively, open the folder bearing the project name, then select the
Visual Basic Project File with the extension .vbproj
Only have one project open at any given time to avoid confusion – unless several
are needed to be opened together for advanced programming.
If you don’t see the Form Designer window after you have reopened a project,
click the Form1.vb icon in Solution Explorer to make it appear.
Summary
• The Windows Application Template in the New Project dialog is used to begin a new
Windows application project.
• A unique name should be entered into the New Project dialog whenever you create a
new Visual Basic project.
• The Form Designer window of the Visual Studio IDE is where you create the visual
interface for your program.
• Visual controls are added from the Toolbox to create the interface layout you want for
your program.
• A control can be dragged from the Toolbox and dropped onto the Form, or added to the
Form with a double-click.
• The Visual Studio IDE automatically generates code in the background as you
develop your program visually.
• The Code Editor window of the Visual Studio IDE is where you manually add extra
code to your program.
• Double-click on any control in the Form Designer to open the Code Editor window at
that control’s event-handler code.
• The Start button on the Visual Studio toolbar can be used to run the current project
application.
• Pressing a Button control in a running application creates a Click event within the
program.
• Code added to a button’s Click event-handler determines how your program will
respond whenever its Click event occurs.
• Providing intelligent responses to events in your programs is the cornerstone of
programming with Visual Basic.
• Remember to explicitly save your working project using the Save All button on the
toolbar, to avoid accidental loss.
• Select the solution file with the .sln extension in your chosen saved project directory to
reopen that project.
2
Setting properties
This chapter describes how properties of an application can be changed at “designtime”, when you are creating the
interface, and at “runtime”, when the application is actually in use.
Form properties
Meeting the properties editor
Editing property values
Coding property values
Applying computed values
Applying user values
Prompting for input
Specifying dialog properties
Summary
Form properties
Most applications created with Visual Basic are based upon a windowed Form – a canvas
on which to paint the user interface. In some cases, an application will have more than one
Form, and Visual Basic lets you display and hide Forms while the application is running.
Closing the main Form quits the application.
Like all Visual Basic objects, each Form has several interesting, familiar properties, such
as those distinguished below:
A Form is a window. That is why Forms have a Maximize, Minimize and Close
button, like all other regular windows.
Meeting the properties editor
The Visual Studio IDE provides a Properties window where object properties can be
inspected. This displays a list of the currently selected object’s properties, and their current
values. The full list of Form properties, for example, is much larger than the few shown on
the previous page, and can be inspected in the property editor.
Identify the Properties window in the IDE – if it’s not visible click View,
Properties Window to open it
Every object in Visual Basic has a name – the name of the currently selected
object appears in the drop-down list at the top of the Properties window.
Click on File, New, Project to start a new Windows Forms Application using the
suggested default name
Click on the blank Form in the Form Designer window to display its properties in
the Properties window
Try out the Properties window buttons, immediately above the properties list, to
explore different types of categorized and alphabetical displays
Use the scroll bar in the Properties window to examine the complete list of Form
properties and their present values
Although “Form1” is the default value for both Text and (Name) properties, it is
important to recognize that the Text property only sets the Form’s caption,
whereas the (Name) property is used to reference that Form in Visual Basic
programming code.
Random documents with unrelated
content Scribd suggests to you:
Peasants of the region speak of Fuji not by
name but merely as O Yama, the "Honourable
Mountain"
CHAPTER II
The Pier at Yokohama—The Flower-People—A Celestial Suburb—French
Cooking and Frock Coats—From a Car-Window—Elfin Gardens—"The
Land of Little Children"
The satisfying thing about Japan is that it always looks exactly like
Japan. It could not possibly be any other place. The gulls are Japanese
gulls, the hills are Japanese hills, Tokyo Bay is a Japanese bay, and if
the steamers anchored off the port of Yokohama are not all of them
Japanese, many of them have, at least, an exotic look, with their
preposterously fat red funnels or their slender blue ones. Even the little
launches from which the port authorities board you as you lie in the
harbour are not quite like the launches seen elsewhere, and though
the great stone pier, to which at last you are warped in, might of itself
fit the picture of a British seaport, the women and children waiting on
the pier, trotting along beside the ship as she moves slowly to her
berth, waving and smiling up at friends on deck, are costumed in
inevitable suggestion of great brilliant flower-gardens agitated by the
wind. Amongst these women and children in their bright draperies, the
dingy European dress of the male is almost lost, so that, for all its
pantaloons and derby hats, Japan is still Japan.
Can it be that in this densely populated little country there are more
willing hands than there is work for willing hands to do? Must work be
spread thin in order to provide a task and a living for everyone? But
again, if that was it, would people work as hard as these people seem
to? Would women be at work beside their husbands, digging knee
deep in the mud and water of the rice fields, dragging heavy-laden
carts, handling bulky boats? And would the working hours be so long?
Here is something to be looked into. But not now.
The houses, too, are often set in elfin situations. One will stand at
the crest of a little precipice with a minute table-land of garden back of
it; another will nestle, half concealed, in a small sheltered basin where
it seems to have grown from the ground, along with the trees and
shrubbery surrounding it—the flowering hedges and the pines with
branches like extended arms in drooping green kimono sleeves; still
another rises at the border of a pond so small that in a land less toylike
it would hardly be a pond; yet here it is adorned with grotesquely
lovely rocks and overhanging leaves and blooms, and in the middle of
it, like as not, will be an island hardly larger than a cartwheel, and on
that island a stone lantern with a mushroom top, and reaching to it
from the shore a delicate arched bridge of wood beneath which drowsy
carp and goldfish cruise, with trading fins and rolling ruminative eyes.
Can it be that they pile the children on each others' backs, making
two layers of them, because there isn't room upon the ground for all of
them at once? Babies riding on their mothers' backs travel in
comparative dignity and safety. Under their soft little mushroom hats
they sleep through many things—street-car trips, shopping expeditions
and gabbling parties in the tea-rooms of department stores. But those
who ride the shoulders of their elder brothers lead lives of wild
adventure. Their presence is not allowed to interfere with the progress
of young masculine life. The brother will climb trees, walk on stilts and
even play baseball, seemingly unconscious of the weight and the
fragility of the little charge attached to him by ties of blood and cotton.
If the drowsy baby head drops over, getting in the way, the brother
alters its position with a bump from the back of his own head. When
the small rider slips down too far, whether on the back of child or
adult, its bearer stoops and bucks like a broncho, tossing baby into
place again. Through all of which the infant generally sleeps. Are its
dreams disturbed, one wonders, when big brother slides for second-
base? I doubt it. Knowing no cradle, no easy-riding baby carriage, the
Japanese baby is from the first accustomed to a life of action. It seems
to be a fatalist. And indeed it would appear that some special god
protects the baby, for it always seems to go unscathed.
CHAPTER III
Growing Tokyo—Architecture and Statuary—The Westernization of
Japan—The Story of Costumes—Women's Dress Advantages of
Standardized Styles—Selection and Rejection
As you reach the outskirts of Tokyo you think you are coming to
another little town, but the town goes on and on, and finally as the
train draws near the city's heart large buildings, bulking here and there
above the general two-story tile roofline, inform you in some measure
of the importance of the place. In 1917 Tokyo ranked fifth among the
cities of the world, with a population almost equal to Berlin's, and it
seems likely that when reliable statistics for the world become available
again we shall find that the population of Berlin has at most remained
stationary, while that of Tokyo has grown even more rapidly than
usual, owing to exceptional industrial activity and to the influx of
Russian refugees, whose presence in large numbers in Japan has
created a housing problem. Nor shall I be surprised to hear that Tokyo
has passed Chicago in the population race, becoming third city of the
world.
When this time comes the Japanese will also realize how very bad
are most of the bronze statues of statesmen and military leaders
throughout the world, and how particularly bad are their own
adventures in this field of art.
Until I saw Tokyo I was under the impression that the world's worst
bronzes were to be found in the region of the Mall in Central Park, New
York; but there is in Tokyo a statue of a statesman in a frock coat, with
a silk hat in his hand, which surpasses any other awfulness in bronze
that I have ever seen.
Looking at such things one marvels that they can be created and
tolerated in a land which has produced and still produces so much
minute loveliness in pottery, ivory, and wood. How can these people,
who still know flowing silken draperies, endure to see their heroes cast
in Prince Albert coats and pantaloons? And how can they adopt the
European style of statuary, when in so many places they have but to
look at the roadside to see an ancient monument consisting of a single
gigantic stone with unhewn edges and a flat face embellished only with
an inscription—simple, dignified, impressive.
The Meiji Era will doubtless go down as the greatest of all eras in
Japanese history, and as one of the greatest eras in the history of any
nation. To Viscount Kaneko, who is in charge of the work of preparing
the official record of the reign for publication, President Roosevelt
wrote his opinion of what such a book should be.
But because Japan has accepted a thing it does not mean that she
has accepted it for ever. In great affairs and small, her history
illustrates this fact. A case in point is the story of European dress.
More than thirty years ago, when the craze for everything foreign
was at its height, when the whole fabric of social life in the upper
world was in process of radical change, European dress became
fashionable not only for men but for women. When great ladies had
worn it for a time their humbler sisters took it up, and one might have
thought that the national costume, which is so charming, was destined
entirely to disappear.
The men who found foreign dress useful continued to wear it for
business, although those who could afford to do so kept a Japanese
wardrobe as well. But the women, to whom European dress was only
an encumbrance, discarded it completely, so that to-day no sight is
rarer in Japan than that of a Japanese woman dressed in other than
the native costume.
As with us, the temperature is not the thing that marks the time for
changing from the attire of one season to that of another. Summer
arrives on June first, whatever the weather may be. On that date the
Tokyo policeman blossoms out in white trousers and a white cap, and
on June fifteenth he confirms the arrival of summer by changing his
blue coat for a white one. So with ladies of fashion. Their summer is
from June first to September thirtieth; their autumn from October first
to November thirtieth; their winter from December first to March thirty-
first; their spring from April first to May thirty-first. In spring the
brightest colours are worn. Those for autumn and winter are generally
more subdued.
"As our style never changes," she writes, "we don't have to buy new
dresses every season, as our American sisters do. When a girl marries,
her parents supply her, according to their means, with complete
costumes for all seasons. Sometimes these sets will include several
hundred kimonos, and they may cost anywhere from two thousand to
twenty thousand yen. [A yen is about equal to half a dollar.]
"So if a girl is well fitted out she need not spend a great deal on
dress after her marriage. A couple of hundred yen may represent her
whole year's outlay for dress, though of course if she is rich and cares
a great deal for dress, she may spend several thousand.
Some other items I get from this lady: When a Japanese girl is
married it is customary for the bride's family to present obi to the
ladies of the groom's family. For a funeral the entire costume including
the obi, is black, save for the white crests. Ladies of the family of the
deceased wear white silk kimonos without crests, and white silk obi.
The Japanese ladies' costume, put on to the best advantage, is not so
comfortable as it looks. It is fitted as tight as possible over the chest,
to give a flat appearance, and is also bound tight at the waist to hold it
in position. The obi, moreover, is very stiff, and to look well must also
be tight.
The more select geisha are said to attain the greatest perfection of
style; which probably means merely that, being professional
entertainers whose sole business it is to please men, they make more
of a study of dress, and spend more time before their mirrors than
other women do.
The speed with which women reverted to the lovely kimono after
their brief experiment with foreign fashions, may have been due in part
to a lurking fear in Japanese male minds that along with the costume
their women might adopt pernicious foreign ways, becoming
aggressive and intractable, like American women who, according to the
Japanese idea, are spoiled by their men—precisely as, according to our
idea, Japanese men are spoiled by their women.
But whatever the reasons, the fact remains that the Japanese
revealed good practical judgment. They kept what they needed and
discarded the rest. It is their avowed purpose to follow this rule in all
situations involving the acceptance or rejection of western innovations,
their object being to preserve the national customs wherever these do
not conflict with the requirements of the hideous urge we are pleased
to term "modern progress." This is a good rule to follow, and if we but
knew the story of the period when Chinese civilization was brought to
Japan, nearly fourteen centuries ago, we might perhaps find
interesting parallels between the two eras of change.
CHAPTER IV
Quakes and the Building Problem—Big Quakes—Democracy in
Architecture—Narrow Streets and Tiny Shops—The Majestic Little
Policeman—The Dread of Burglars—What to Do in a Quake—The Man
Who Went Home—"Fire!"—A Ricksha Ride to the Wrong Address—A
Front-Porch Bath
That she is only now beginning to build in this way is not due to
inertia, but to the fact that earthquakes complicate her building
problem. The tallest of her present office buildings is, I believe, but
seven stories high, and I have heard that twice as much steel was
employed in its construction as would have been employed in a similar
building where earthquakes did not enter into the calculations of the
architect.
Minor shocks receive but little attention. In fact by many they are
regarded with favour, on the assumption that they tend to reduce
pressure in the boiler-room, preventing savage visitations. However,
these do occasionally occur and on the seacoast they are sometimes
accompanied by tidal waves which ravage long stretches of shore,
wiping out towns and villages.
Even though the quakes are slight, they serve to keep in people's
minds certain unpleasant possibilities; and these possibilities are, as I
have said, acknowledged in the structure of Japanese houses. Two
stories is the maximum height for a residence, and even tea-houses
and hotels are seldom more than three stories high. This, together
with the fact that everyone who can afford it has a garden, causes
Japanese cities to spread enormously.
On the other hand, the Japanese requires fewer rooms than we do;
his home life is simple and he is less a slave to his possessions than
any other civilized human being. The average family can move its
household goods in a hand-cart. Even the houses of the rich are not
blatant except in a few cases in which florid European architecture has
been attempted. The difference between the houses of the rich and of
the poor is in degree, not in kind. As with the Japanese costume, the
essential lines do not vary.
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebooknice.com