library_vb » Revisions »
Differences
This shows you the differences between the selected revisions of the page.
2018-08-20 | 2018-12-24 | ||
link normalization (martin) | WithEvents does not have separate doc page anymore (martin) | ||
Line 22: | Line 22: | ||
* Implement your interactions with WinSCP .NET assembly in a class module; | * Implement your interactions with WinSCP .NET assembly in a class module; | ||
* Declare private variable in your class module referring to ''[[library_session|Session]]'' class; | * Declare private variable in your class module referring to ''[[library_session|Session]]'' class; | ||
- | * Use ''[[https://docs.microsoft.com/en-us/office/vba/language/reference/user-interface-help/withevents-keyword|WithEvents]]'' keyword, when declaring the private variable; | + | * Use [[https://docs.microsoft.com/en-us/office/vba/language/reference/user-interface-help/private-statement|''WithEvents'' keyword, when declaring the private variable]]; |
* Define private function (method) with name ''<variablename>_<event>'' and two arguments (e.g. ''sender'' and ''e'') for every event you need to handle. | * Define private function (method) with name ''<variablename>_<event>'' and two arguments (e.g. ''sender'' and ''e'') for every event you need to handle. | ||