Arkadiusz Wilczyński - Visual Basic. Leksykon.pdf
(
1457 KB
)
Pobierz
Rozdzia³ X
Spis treści
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
D:\Kompakt !!!\Kompakt\Ksiazki 1 !\Visual Basic Leksykon\Spis treści.doc
1
2
Visual Basic. Leksykon
2.2.5. Testujące ................................................................................................... 86
2.2.6. Wejścia-wyjścia......................................................................................... 92
2.2.7. 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
2
D:\Kompakt !!!\Kompakt\Ksiazki 1 !\Visual Basic Leksykon\Spis treści.doc
Spis treści
3
3.2.10. AutoSize .................................................................................................. 149
3.2.11. BackColor ............................................................................................... 150
3.2.12. BorderColor............................................................................................. 151
3.2.13. BorderStyle.............................................................................................. 152
3.2.14. BorderWidth............................................................................................ 153
3.2.15. Cancel...................................................................................................... 153
3.2.16. Caption .................................................................................................... 154
3.2.17. Checked................................................................................................... 154
3.2.18. ClipControls ............................................................................................ 154
3.2.19. Columns (DBGrid) .................................................................................. 155
3.2.20. Columns (ListBox) .................................................................................. 155
3.2.21. Container ................................................................................................. 155
3.2.22. ControlBox .............................................................................................. 156
3.2.23. Controls ................................................................................................... 156
3.2.24. Count (VB Collections) ........................................................................... 156
3.2.25. CurrentX, CurrentY................................................................................. 156
3.2.26. Database .................................................................................................. 157
3.2.27. DatabaseName......................................................................................... 157
3.2.28. DataChanged ........................................................................................... 158
3.2.29. DataField ................................................................................................. 158
3.2.30. DataSource .............................................................................................. 158
3.2.31. Default..................................................................................................... 158
3.2.32. DisabledPicture ....................................................................................... 159
3.2.33. DownPicture............................................................................................ 159
3.2.34. DragIcon.................................................................................................. 159
3.2.35. DragMode ............................................................................................... 160
3.2.36. DrawMode............................................................................................... 160
3.2.37. DrawStyle................................................................................................ 161
3.2.38. DrawWidth .............................................................................................. 161
3.2.39. Drive........................................................................................................ 162
3.2.40. Enabled.................................................................................................... 162
3.2.41. FileName ................................................................................................. 162
3.2.42. FillColor .................................................................................................. 163
3.2.43. FillStyle ................................................................................................... 163
3.2.44. Font ......................................................................................................... 164
3.2.45. FontBold.................................................................................................. 164
3.2.46. FontItalic ................................................................................................. 164
3.2.47. FontName ................................................................................................ 164
3.2.48. FontSize................................................................................................... 165
3.2.49. FontStrikethru.......................................................................................... 165
3.2.50. FontTransparent....................................................................................... 165
3.2.51. FontUnderline.......................................................................................... 165
3.2.52. ForeColor ................................................................................................ 166
3.2.53. hDC ......................................................................................................... 166
3.2.54. Hidden ..................................................................................................... 166
3.2.55. Height...................................................................................................... 166
3.2.56. HelpContextID ........................................................................................ 167
3.2.57. hWnd ....................................................................................................... 167
3.2.58. HideSelection .......................................................................................... 167
3.2.59. Icon.......................................................................................................... 168
3.2.60. Image....................................................................................................... 168
3.2.61. Index (ActiveX)....................................................................................... 168
3.2.62. Index (Control Array).............................................................................. 168
3.2.63. IntegralHeight.......................................................................................... 169
3.2.64. Interval .................................................................................................... 169
D:\Kompakt !!!\Kompakt\Ksiazki 1 !\Visual Basic Leksykon\Spis treści.doc
3
4
Visual Basic. Leksykon
3.2.65. ItemData .................................................................................................. 169
3.2.66. KeyPreview ............................................................................................. 170
3.2.67. LargeChange ........................................................................................... 170
3.2.68. Left .......................................................................................................... 170
3.2.69. LinkItem .................................................................................................. 171
3.2.70. LinkMode ................................................................................................ 171
3.2.71. LinkTimeout............................................................................................ 172
3.2.72. LinkTopic ................................................................................................ 172
3.2.73. List .......................................................................................................... 173
3.2.74. ListCount................................................................................................. 173
3.2.75. ListIndex ................................................................................................. 173
3.2.76. Locked..................................................................................................... 174
3.2.77. MaskColor............................................................................................... 174
3.2.78. Max ......................................................................................................... 174
3.2.79. MaxButton............................................................................................... 175
3.2.80. MaxLength .............................................................................................. 175
3.2.81. MDIChild ................................................................................................ 175
3.2.82. Min .......................................................................................................... 176
3.2.83. MinButton ............................................................................................... 176
3.2.84. MouseIcon............................................................................................... 176
3.2.85. MousePointer .......................................................................................... 177
3.2.86. Moveable................................................................................................. 178
3.2.87. MultiLine................................................................................................. 178
3.2.88. MultiSelect .............................................................................................. 178
3.2.89. Name ....................................................................................................... 179
3.2.90. Negotiate ................................................................................................. 179
3.2.91. NegotiateMenus....................................................................................... 179
3.2.92. NegotiatePosition .................................................................................... 179
3.2.93. NegotiateToolbars ................................................................................... 180
3.2.94. NewIndex ................................................................................................ 180
3.2.95. Normal..................................................................................................... 180
3.2.96. OLEDragMode........................................................................................ 181
3.2.97. OLEDropMode........................................................................................ 181
3.2.98. Palette...................................................................................................... 182
3.2.99. PaletteMode............................................................................................. 182
3.2.100. Parent....................................................................................................... 183
3.2.101. PasswordChar.......................................................................................... 183
3.2.102. Path.......................................................................................................... 183
3.2.103. Pattern ..................................................................................................... 184
3.2.104. Picture ..................................................................................................... 184
3.2.105. ReadOnly................................................................................................. 184
3.2.106. ScaleHeight ............................................................................................. 185
3.2.107. ScaleLeft ................................................................................................. 185
3.2.108. ScaleMode............................................................................................... 185
3.2.109. ScaleTop.................................................................................................. 186
3.2.110. ScaleWidth .............................................................................................. 186
3.2.111. ScrollBars ................................................................................................ 187
3.2.112. SellCount................................................................................................. 187
3.2.113. Selected ................................................................................................... 188
3.2.114. SelLength ................................................................................................ 188
3.2.115. SelStart .................................................................................................... 188
3.2.116. SelText .................................................................................................... 189
3.2.117. Shape ....................................................................................................... 189
3.2.118. Shortcut ................................................................................................... 190
3.2.119. ShowInTaskbar........................................................................................ 190
4
D:\Kompakt !!!\Kompakt\Ksiazki 1 !\Visual Basic Leksykon\Spis treści.doc
Spis treści
5
3.2.120. SmallChange ........................................................................................... 190
3.2.121. Sorted ...................................................................................................... 190
3.2.122. Stretch ..................................................................................................... 191
3.2.123. StartUpPosition ....................................................................................... 191
3.2.124. Style ........................................................................................................ 191
3.2.125. System ..................................................................................................... 192
3.2.126. TabIndex ................................................................................................. 193
3.2.127. TabStop ................................................................................................... 193
3.2.128. Tag .......................................................................................................... 193
3.2.129. Text ......................................................................................................... 193
3.2.130. ToolTipText ............................................................................................ 194
3.2.131. Top .......................................................................................................... 194
3.2.132. TopIndex ................................................................................................. 194
3.2.133. UseMaskColor......................................................................................... 195
3.2.134. UseMnemonic ......................................................................................... 195
3.2.135. Value ....................................................................................................... 195
3.2.136. Visible ..................................................................................................... 196
3.2.137. WhatsThisButton..................................................................................... 196
3.2.138. WhatsThisHelp........................................................................................ 196
3.2.138. WhatsThisHelpID.................................................................................... 197
3.2.139. Width....................................................................................................... 197
3.2.140. WindowList ............................................................................................. 197
3.2.142. WindowState ........................................................................................... 198
3.2.143. WordWrap ............................................................................................... 198
3.2.144. X1, Y1 — X2,Y2 .................................................................................... 198
3.3. Zdarzenia kontrolek standardowych ...................................................................... 199
3.3.1. Activate ................................................................................................... 199
3.3.2. Change..................................................................................................... 199
3.3.3. Click ........................................................................................................ 199
3.3.4. DblClick .................................................................................................. 200
3.3.5. DeActivate............................................................................................... 200
3.3.6. DragDrop................................................................................................. 200
3.3.7. DragOver................................................................................................. 201
3.3.8. DropDown ............................................................................................... 201
3.3.9. Error ........................................................................................................ 202
3.3.10. GotFocus ................................................................................................. 202
3.3.11. Initialize................................................................................................... 202
3.3.12. ItemCheck ............................................................................................... 203
3.3.13. KeyDown ................................................................................................ 203
3.3.14. KeyPress.................................................................................................. 203
3.3.15. KeyUp ..................................................................................................... 204
3.3.16. LinkClose ................................................................................................ 204
3.3.17. LinkError................................................................................................. 205
3.3.18. LinkExecute ............................................................................................ 205
3.3.19. LinkNotify............................................................................................... 206
3.3.20. LinkOpen................................................................................................. 206
3.3.21. Load ........................................................................................................ 206
3.3.22. LostFocus ................................................................................................ 206
3.3.23. MouseDown ............................................................................................ 207
3.3.24. MouseMove............................................................................................. 208
3.3.25. MouseUp ................................................................................................. 208
3.3.26. Paint ........................................................................................................ 209
3.3.27. PathChange.............................................................................................. 209
3.3.28. PatternChange ......................................................................................... 210
3.3.29. QueryUnload ........................................................................................... 210
D:\Kompakt !!!\Kompakt\Ksiazki 1 !\Visual Basic Leksykon\Spis treści.doc
5
Plik z chomika:
pawlak_borowka
Inne pliki z tego folderu:
Sawicki,Malejczyk, Histologia, W-wa 2012.pdf
(313697 KB)
Kryminalna Historia Chrześcijanstwa - Tom 2.pdf
(173546 KB)
INWAZJA UPIORÓW 1944 - 1970 O wkładzie szowinistów żydowskich w najnowszą historię Polski.pdf
(127753 KB)
W. H. Carroll - Historia chrześcijaństwa. T.6 - Kryzys chrześcijaństwa.pdf
(55591 KB)
PRZYGOTOWANIE DO ŚMIERCI - Liguori Maria Alfons.pdf
(102516 KB)
Inne foldery tego chomika:
Pliki dostępne do 08.07.2024
Pliki dostępne do 16.11.2022
Pliki dostępne do 21.01.2024
Disco Polo (mp3)
Dokumenty
Zgłoś jeśli
naruszono regulamin