Skip to content

Instantly share code, notes, and snippets.

View Laicure's full-sized avatar
🎲
int+luk

Laicurè Leviarè Laicure

🎲
int+luk
View GitHub Profile
@Laicure
Laicure / FormDrag.vb
Last active January 26, 2016 15:03
[vb] Form Drag Snippet
Module FormDrag
'********** Form Set Variables
Private dragging As Boolean
Private mXx As Integer
Private mYy As Integer
'Form Drag
''MouseDown
Friend Sub FormDragDown()
dragging = True
@Laicure
Laicure / Extra.vb
Last active July 27, 2017 17:31
[vb] Extra Snippets
Imports System.Net.Sockets
Module Extra
#Region "DoubleBuffered Buff // Use Buff.DoubleBuff(<Control>)"
Friend NotInheritable Class Buff
Friend Shared Sub DoubleBuff(Contt As Control)
Dim ConttType As Type = Contt.[GetType]()
Dim propInfo As System.Reflection.PropertyInfo = ConttType.GetProperty("DoubleBuffered", System.Reflection.BindingFlags.Instance Or System.Reflection.BindingFlags.NonPublic)
propInfo.SetValue(Contt, True, Nothing)
@Laicure
Laicure / Encryptor.vb
Last active October 12, 2016 22:36
[vb] RijndaelManaged Snippet
Imports System.Security.Cryptography
Imports System.Text
Module Encryptor
'********** Cryptography Declarations
Private cipherX As New RijndaelManaged
'Keys can be 1~255, separated by a comma
'keyBytes have 32 non-duplicating values
Private keyBytes As Byte() = {}
'IVBytes have 16 non-duplicating values