Word Document Properties


Part II: Learning the Ropes



Download 8,82 Mb.
Pdf ko'rish
bet137/207
Sana16.03.2022
Hajmi8,82 Mb.
#496217
1   ...   133   134   135   136   137   138   139   140   ...   207
Bog'liq
VBA For Dummies 5th Ed.pdf ( PDFDrive )

Part II: Learning the Ropes 
12_046500 ch07.qxp 12/5/06 5:35 PM Page 156


To begin this example, you need to add a few references that VBA doesn’t pro-
vide. Use the Tools

References command to display the References dialog 
box. Select the Microsoft Visual Basic for Applications Extensibility 5.3 and
Microsoft Windows Common Controls (any version is fine) libraries, as shown
in Figure 7-1. Make sure that you also have selected the other references shown.
Anyone who has used VBA for a while will notice that the version numbers 
of the libraries in Figure 7-1 are for Office 2007. However, the interesting fact
is that the Visual Basic Editor didn’t require any changes to use the new
libraries. The editor automatically used the updated libraries when I loaded
this code from the previous edition of this book for updating.
The easiest way to design a form is by using the IDE. In the upcoming “Using
the Basic Controls” section of this chapter, you see this traditional method of
form design in action. A form that you design using these tools is static —
you decide how it looks during the design phase of your program.
Considering the form layout
The way that you design your form is important. When you use a well-designed
form, you feel good about the program. A form with a good layout is easy to
use and understand. Here are some design elements that you should con-
sider for your form (all of which appear in examples in this chapter):
Flow:
The controls on a form should naturally flow from one element to
the next. For example, you should place the fields on the form so that
someone performing a task, such as typing an address, types the name
first, the company second, the address third, and so forth. Make sure
that the tab order follows the flow you provide. You can change the tab
order by choosing View

Tab Order.
Figure 7-1:
Adding
these
references
can make 
it easy 
to create
your own
dynamic
forms.
157

Download 8,82 Mb.

Do'stlaringiz bilan baham:
1   ...   133   134   135   136   137   138   139   140   ...   207




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish