Unlock For Us

Generate random value between minimum and upperbound in VB.NET

 To generate a random value between a lowerBound and an upperBound, use the standard scaling formula: random() * (upperBound - lowerBound) + lowerBound for decimal numbers, or floor(random() * (upperBound - lowerBound + 1)) + lowerBound for inclusive integers. Most programming languages and spreadsheet tools also provide built-in functions to do this directly.


VB.NET


' Initialize the random-number generator. Randomize() ' Generate random value between 1 and 6. Dim value As Integer = CInt(Int((6 * Rnd()) + 1))
messagebox.show(value.tostring())



The Rnd function returns a value less than 1, but greater than or equal to zero. Before calling Rnd, use the Randomize statement without an argument to initialize the random-number generator with a seed based on the system timer.


References:

Google

https://learn.microsoft.com/en-us/dotnet/api/microsoft.visualbasic.vbmath.rnd?view=net-10.0


Read more...

Unlock For Us

Easy Beacon in VB.NET

 Heres an easy way, alternative to 555 IC or Transistor Timer, Just Code it up in vb.net, Thats it!


Dim i As Integer = 0


Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

i = i + 1

If i = 1 Then

Out64(888, 1)

End If

If i = 2 Then

Out64(888, 0)

i = 0 'reset

End If

End Sub


ENJOY

References: CB One: LEDs  (make sure Run as Administrator)

Read more...

Define Power Buttons and Turn on password protection

Power Buttons: The physical or software-defined trigger on a computer or device that commands it to power on, shut down, enter sleep mode, or hibernate.
Password Protection on Wakeup: A security setting that forces the computer to lock and require a password, PIN, or biometric check when resuming from a low-power state (like Sleep or Hibernate).

Heres how to access the Control Panel Page
control.exe /name Microsoft.PowerOptions /page pageGlobalSettings

Enjoy

Read more...

Unlock For Us

Car Latch with Short Circuit Protection

 Heres a circuit that was made to be modular technology with three functions

> start, One Touch Vout

> stop, resets to zero volts

> Short circuit , opens the relay


THATS IT! ENJOY


Read more...

Parallel your Transistor to Double the Capacity

 If you cant find the correct rating of your transistor, double the capacity as shown.


A transistor is a tiny semiconductor device used to amplify, control, and switch electrical signals in electronic circuits.

ENJOY


Read more...

Unlock For Us

Add Disk Defrag, Check Disk and Disk Cleanup to Disk Context menu

 Check Disk (CHKDSK) is a Windows tool that scans your drive for file system errors and bad sectors, and can repair them when run with the right parameters.

CHKDSK examines the file system integrity of a disk and can fix logical errors or mark damaged sectors so they aren’t used again. It can help with issues like slow performance, corrupted files, crashes, or boot errors.


Open your registry editor (regedit.exe) and go to HKEY_CLASSES_ROOT\drive\shell

Create the following:

HKEY_CLASSES_ROOT\Drive\shell\Launch Disk Clean-up\command

Put (default) = cleanmgr.exe /d %1

HKEY_CLASSES_ROOT\Drive\shell\Launch Disk Defrag\command

Put (Default) = C:\Windows\System32\defrag.exe %1

HKEY_CLASSES_ROOT\Drive\shell\Launch Check Disk\command

Put (Default) = C:\Windows\System32\chkdsk /r /f %1


Definitions

Disk defrag is a program designed to increase the speed of accessing the files by rearranging them. The main purpose is to optimise the time it takes to read and write from the disk.

It improves startup times and many more.

Defrag.exe offers more options and control for defragmentation process such as performing a full defragmentation and many more.

CHKDSK is a command Line disk tool that verifies the integrity of your file system structure and the hard disk drive.

Disk Cleanup (cleanmgr.exe) is a maintenance utility designed to free up disk space and remove unnecessary files.

Enjoy!


Read more...

Coded Old Inverter Technology

 

Heres a quick theory, when you input X pulses to a transformer, It will have an output of 2X Sinusoidally. We use CB One, instead of 555 or CMOS IC... NEW Power Technology??




Flasher Code in VB.Net (Run as Administrator)

Vb.Net Integrated Development Environment (2008 IDE)


GREAT

Read more...

 

© Unlock For Us @2026-2027| Blogger| License Agreement| Author| Contact Us