Visual Basic Leksykon.pdf
(
537 KB
)
Pobierz
IDZ DO
PRZYK£ADOWY ROZDZIA£
SPIS TREŒCI
Visual Basic.
Leksykon
Autor: Arkadiusz Wilczyñski
ISBN: 83-7197-643-7
Format: B5, stron: 232
KATALOG KSI¥¯EK
KATALOG ONLINE
ZAMÓW DRUKOWANY KATALOG
TWÓJ KOSZYK
DODAJ DO KOSZYKA
CENNIK I INFORMACJE
ZAMÓW INFORMACJE
O NOWOŒCIACH
ZAMÓW CENNIK
Aby wiedzieæ, jak dane narzêdzie wykorzystaæ, trzeba dok³adnie siê z nim zapoznaæ.
I w³aœnie temu s³u¿yæ ma ta ksi¹¿ka. Dla niedoœwiadczonego czytelnika poznanie
„warsztatu pracy programisty” jest zawsze trudne, zw³aszcza gdy ma do czynienia
z czêsto nieczyteln¹ dokumentacj¹ (np. napisan¹ w jêzyku obcym). Rozbudowany spis
treœci, liczne przyk³ady zastosowania m.in. funkcji czy obiektów definiowanych przez
Visual Basic u³atwi¹ prze³amanie pierwszych lodów. Jednak zarówno pocz¹tkuj¹cy,
jak i zaawansowany programista znajd¹ w „Leksykonie” interesuj¹ce informacje.
Szczególnie wa¿ne jest to, ¿e nie zosta³ pominiêty opis interfejsu œrodowiska
programistycznego, co stwarza niepowtarzaln¹ szansê na uzupe³nienie wiadomoœci
o przyciskach i oferowanym menu.
Liczne uwagi i komentarze odautorskie stawiaj¹ tê ksi¹¿kê ponad przeciêtn¹ ocenê,
z jak¹ mog³yby siê spotkaæ inne publikacje przyjmuj¹ce formê leksykonu. Treœæ staje
siê ¿ywa i ³atwo przyswajalna, a sam proces programowania ³atwy i przyjemny — jak
zapewnia autor we wstêpie do ksi¹¿ki.
CZYTELNIA
FRAGMENTY KSI¥¯EK ONLINE
Wydawnictwo Helion
ul. Chopina 6
44-100 Gliwice
tel. (32)230-98-63
e-mail: helion@helion.pl
Wstęp ................................................................................................................11
Rozdział 1. Podstawy obsługi programu VB ........................................................13
1.1. Menu programu .........................................................................................................13
1.1.1. File...............................................................................................................13
1.1.2. Edit ..............................................................................................................16
1.1.3. View ............................................................................................................20
1.1.4. Project .........................................................................................................23
1.1.5. Format .........................................................................................................25
1.1.6. Debug ..........................................................................................................28
1.1.7. Run ..............................................................................................................30
1.1.8. Tools............................................................................................................31
1.1.9. Add-Ins........................................................................................................32
1.1.10 Window .......................................................................................................33
1.1.11. Help .............................................................................................................34
1.2. Okna w VB ................................................................................................................35
1.2.1. Call Stack ....................................................................................................35
1.2.2. Code ............................................................................................................35
1.2.3. Components.................................................................................................36
1.2.4. Form ............................................................................................................38
1.2.5. Form Layout................................................................................................39
1.2.6. Immediate....................................................................................................40
1.2.7. Locals ..........................................................................................................40
1.2.8. Object Browser............................................................................................41
1.2.9. Project .........................................................................................................42
1.2.10. Properties.....................................................................................................43
1.2.11. Toolbox .......................................................................................................44
1.2.12. Watch ..........................................................................................................45
Rozdział 2. Podstawy programowania w VB .......................................................47
2.1. Instrukcje sterujące.....................................................................................................47
2.1.1. Do................................................................................................................47
2.1.2. For ...............................................................................................................49
2.1.3. If ..................................................................................................................50
2.1.4. Select Case ..................................................................................................52
2.2. Funkcje wbudowane...................................................................................................54
2.2.1. Daty i czasu .................................................................................................54
2.2.2. Konwertujące ..............................................................................................64
2.2.3. Matematyczne .............................................................................................71
2.2.4. Tekstowe .....................................................................................................76
2
2.2.5.
2.2.6.
2.2.7.
Visual Basic. Leksykon
Testujące .....................................................................................................86
Wejścia-wyjścia ..........................................................................................92
Pozostałe ...................................................................................................103
Rozdział 3. Obiekty w VB.................................................................................107
3.1. Kontrolki standardowe.............................................................................................107
3.1.1. Animation..................................................................................................107
3.1.2. CheckBox..................................................................................................108
3.1.3. ComboBox ................................................................................................109
3.1.4. CommandButton .......................................................................................110
3.1.5. CommonDialog .........................................................................................111
3.1.6. Data ...........................................................................................................111
3.1.7. DBCombo .................................................................................................112
3.1.7. DBGrid......................................................................................................113
3.1.8. DBList .......................................................................................................116
3.1.9. Debug ........................................................................................................117
3.1.10. DirListBox.................................................................................................117
3.1.11. DriveListBox.............................................................................................118
3.1.12. FileListBox................................................................................................119
3.1.13. Form ..........................................................................................................120
3.1.14. Frame.........................................................................................................122
3.1.15. HScroolBar................................................................................................123
3.1.16. Image.........................................................................................................124
3.1.17. Label..........................................................................................................125
3.1.18. Line ...........................................................................................................126
3.1.19. ListBox......................................................................................................126
3.1.20. MDIForm ..................................................................................................127
3.1.21. Menu .........................................................................................................129
3.1.22. OLE ...........................................................................................................129
3.1.23. OptionButton.............................................................................................130
3.1.24. Panel..........................................................................................................131
3.1.25. PictureBox.................................................................................................131
3.1.26. Printer........................................................................................................133
3.1.27. ProgressBar ...............................................................................................134
3.1.28. Shape .........................................................................................................135
3.1.29. Slider .........................................................................................................135
3.1.30. SSTab ........................................................................................................136
3.1.31. StatusBar ...................................................................................................137
3.1.32. TabStrip.....................................................................................................138
3.1.33. TextBox.....................................................................................................139
3.1.34. ToolBar .....................................................................................................141
3.1.35. Timer .........................................................................................................142
3.1.36. UpDown ....................................................................................................142
3.1.37. UserControl ...............................................................................................143
3.1.38. VScrollBar.................................................................................................145
3.2. Właściwości kontrolek standardowych ...................................................................145
3.2.1. Action........................................................................................................145
3.2.2. ActionControl............................................................................................146
3.2.3. ActiveForm ...............................................................................................146
3.2.4. Align..........................................................................................................147
3.2.5. Alignment..................................................................................................147
3.2.6. Appearance................................................................................................148
3.2.7. Archive......................................................................................................148
3.2.8. AutoRedraw ..............................................................................................149
3.2.9. AutoShowChildren....................................................................................149
Spis treści
3.2.10.
3.2.11.
3.2.12.
3.2.13.
3.2.14.
3.2.15.
3.2.16.
3.2.17.
3.2.18.
3.2.19.
3.2.20.
3.2.21.
3.2.22.
3.2.23.
3.2.24.
3.2.25.
3.2.26.
3.2.27.
3.2.28.
3.2.29.
3.2.30.
3.2.31.
3.2.32.
3.2.33.
3.2.34.
3.2.35.
3.2.36.
3.2.37.
3.2.38.
3.2.39.
3.2.40.
3.2.41.
3.2.42.
3.2.43.
3.2.44.
3.2.45.
3.2.46.
3.2.47.
3.2.48.
3.2.49.
3.2.50.
3.2.51.
3.2.52.
3.2.53.
3.2.54.
3.2.55.
3.2.56.
3.2.57.
3.2.58.
3.2.59.
3.2.60.
3.2.61.
3.2.62.
3.2.63.
3.2.64.
3
AutoSize....................................................................................................149
BackColor .................................................................................................150
BorderColor...............................................................................................151
BorderStyle ...............................................................................................152
BorderWidth..............................................................................................153
Cancel........................................................................................................153
Caption ......................................................................................................154
Checked.....................................................................................................154
ClipControls ..............................................................................................154
Columns (DBGrid)....................................................................................155
Columns (ListBox)....................................................................................155
Container ...................................................................................................155
ControlBox................................................................................................156
Controls .....................................................................................................156
Count (VB Collections).............................................................................156
CurrentX, CurrentY...................................................................................156
Database ....................................................................................................157
DatabaseName...........................................................................................157
DataChanged .............................................................................................158
DataField ...................................................................................................158
DataSource ................................................................................................158
Default.......................................................................................................158
DisabledPicture .........................................................................................159
DownPicture..............................................................................................159
DragIcon....................................................................................................159
DragMode .................................................................................................160
DrawMode.................................................................................................160
DrawStyle..................................................................................................161
DrawWidth................................................................................................161
Drive..........................................................................................................162
Enabled......................................................................................................162
FileName ...................................................................................................162
FillColor ....................................................................................................163
FillStyle .....................................................................................................163
Font ...........................................................................................................164
FontBold....................................................................................................164
FontItalic ...................................................................................................164
FontName..................................................................................................164
FontSize.....................................................................................................165
FontStrikethru ...........................................................................................165
FontTransparent ........................................................................................165
FontUnderline ...........................................................................................165
ForeColor ..................................................................................................166
hDC ...........................................................................................................166
Hidden .......................................................................................................166
Height........................................................................................................166
HelpContextID ..........................................................................................167
hWnd .........................................................................................................167
HideSelection ............................................................................................167
Icon............................................................................................................168
Image.........................................................................................................168
Index (ActiveX) ........................................................................................168
Index (Control Array) ...............................................................................168
IntegralHeight ...........................................................................................169
Interval ......................................................................................................169
4
3.2.65.
3.2.66.
3.2.67.
3.2.68.
3.2.69.
3.2.70.
3.2.71.
3.2.72.
3.2.73.
3.2.74.
3.2.75.
3.2.76.
3.2.77.
3.2.78.
3.2.79.
3.2.80.
3.2.81.
3.2.82.
3.2.83.
3.2.84.
3.2.85.
3.2.86.
3.2.87.
3.2.88.
3.2.89.
3.2.90.
3.2.91.
3.2.92.
3.2.93.
3.2.94.
3.2.95.
3.2.96.
3.2.97.
3.2.98.
3.2.99.
3.2.100.
3.2.101.
3.2.102.
3.2.103.
3.2.104.
3.2.105.
3.2.106.
3.2.107.
3.2.108.
3.2.109.
3.2.110.
3.2.111.
3.2.112.
3.2.113.
3.2.114.
3.2.115.
3.2.116.
3.2.117.
3.2.118.
3.2.119.
Visual Basic. Leksykon
ItemData ....................................................................................................169
KeyPreview ...............................................................................................170
LargeChange .............................................................................................170
Left ............................................................................................................170
LinkItem ....................................................................................................171
LinkMode..................................................................................................171
LinkTimeout..............................................................................................172
LinkTopic ..................................................................................................172
List.............................................................................................................173
ListCount...................................................................................................173
ListIndex ...................................................................................................173
Locked.......................................................................................................174
MaskColor.................................................................................................174
Max ...........................................................................................................174
MaxButton.................................................................................................175
MaxLength ................................................................................................175
MDIChild ..................................................................................................175
Min ............................................................................................................176
MinButton .................................................................................................176
MouseIcon.................................................................................................176
MousePointer ............................................................................................177
Moveable...................................................................................................178
MultiLine...................................................................................................178
MultiSelect ................................................................................................178
Name .........................................................................................................179
Negotiate ...................................................................................................179
NegotiateMenus ........................................................................................179
NegotiatePosition ......................................................................................179
NegotiateToolbars .....................................................................................180
NewIndex ..................................................................................................180
Normal.......................................................................................................180
OLEDragMode..........................................................................................181
OLEDropMode .........................................................................................181
Palette ........................................................................................................182
PaletteMode...............................................................................................182
Parent.........................................................................................................183
PasswordChar............................................................................................183
Path............................................................................................................183
Pattern .......................................................................................................184
Picture .......................................................................................................184
ReadOnly...................................................................................................184
ScaleHeight ...............................................................................................185
ScaleLeft ...................................................................................................185
ScaleMode.................................................................................................185
ScaleTop....................................................................................................186
ScaleWidth ................................................................................................186
ScrollBars..................................................................................................187
SellCount...................................................................................................187
Selected .....................................................................................................188
SelLength ..................................................................................................188
SelStart ......................................................................................................188
SelText ......................................................................................................189
Shape .........................................................................................................189
Shortcut .....................................................................................................190
ShowInTaskbar .........................................................................................190
Plik z chomika:
bomaszko
Inne pliki z tego folderu:
Visual Basic 2005 Express i MySQL.pdf
(675 KB)
Visual Basic Leksykon.pdf
(537 KB)
Visual Basic Leksykon(1).pdf
(1020 KB)
O'Reilly - Visual Basic 2005 A Developers Notebook (2005).chm
(1945 KB)
Inne foldery tego chomika:
_ Basic _ QBasic ---
_ DOS _---
_ EDYTORY - IDE - GUI
_ EMULATORY - interpretery
_ LITERATURA
Zgłoś jeśli
naruszono regulamin