19,416
edits
Paradox-01 (talk | contribs) mNo edit summary |
m (/cat, fixed section header issue) |
||
Line 1: | Line 1: | ||
This page serves as a brief documentation of VB.net with a focus on Oni-related aspects. | |||
This page serves as a brief VB.net | |||
==Projects== | |||
* [[User:Paradox-01/for_WIP_pages#Simple_Converter_GUI|Simple Converter GUI]] (for OniSplit) | * [[User:Paradox-01/for_WIP_pages#Simple_Converter_GUI|Simple Converter GUI]] (for OniSplit) | ||
* [[TRAM setup assistant]] | * [[TRAM setup assistant]] | ||
==Basic knowledge== | |||
: Q: How can I use functions from another class? | : Q: How can I use functions from another class? | ||
: A: '''First condition:''' The function must be a "Shared" one. For example "Shared Function GetApp()". '''Second condition:''' in the ''target code'', the class must be written beforehand (for example "Oni.GetApp" whereby "Oni" is the ''source class's'' name). | : A: '''First condition:''' The function must be a "Shared" one. For example "Shared Function GetApp()". '''Second condition:''' in the ''target code'', the class must be written beforehand (for example "Oni.GetApp" whereby "Oni" is the ''source class's'' name). | ||
===Registry=== | |||
Data in '''HKEY_CLASSES_ROOT''' can only be changed by admins. | Data in '''HKEY_CLASSES_ROOT''' can only be changed by admins. | ||
Line 33: | Line 31: | ||
==Code snippets== | |||
Common functions that are shared among VB.net projects should have their own class. | Common functions that are shared among VB.net projects should have their own class. | ||
Line 39: | Line 37: | ||
===Oni Class=== | |||
Functions in this class: | Functions in this class: | ||
Line 152: | Line 150: | ||
===Drag and drop=== | |||
The target element must have its "AllowDrop" property set to "true". | The target element must have its "AllowDrop" property set to "true". | ||
Line 179: | Line 177: | ||
End Sub | End Sub | ||
[[Category:Modding tutorials]] | |||
[[Category: |