| VSSpell Tutorial > Step 2: Initialize the Form |
Double-click the form and add the following code to the Form_Load event:
| Example Title |
Copy Code
|
|---|---|
Private Sub Form_Load()
' Put some text in the large text window.
Text2 = Text1(0) & vbCrLf & Text1(1) & vbCrLf & Text1(2)
' Select the first item in the listbox.
List1.ListIndex = 0
Text3 = List1.List(List1.ListIndex)
' If the main dictionary is not on the system directory, set it here.
VSSpell1.MainDictFile = App.Path & "\VSSP_AE.DCT"
VSSpell2.MainDictFile = App.Path & "\VSSP_AE.DCT"
VSSpell3.MainDictFile = App.Path & "\VSSP_AE.DCT"
End Sub
|
|
This routine initializes some text controls and the list box selection, then sets the VSSpell MainDictFile property.