Visual Basic .NET: Difference between revisions

m
/cat, fixed section header issue
mNo edit summary
m (/cat, fixed section header issue)
Line 1: Line 1:
==Visual Basic .NET==
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 documentation with focus on Oni-related aspects.


 
==Projects==
===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===
==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====
===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===
==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====
===Oni Class===


Functions in this class:
Functions in this class:
Line 152: Line 150:




====Drag and drop====
===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]]
<!-- Are points allowed in category names? -->
 
[[Category: VB.net]]