Unlock For Us

How to Open Computer Window using VB.Net at windows

 To open the Windows "This PC" (formerly "My Computer") window using VB.NET, use the Process.Start method from the System.Diagnostics namespace to launch explorer.exe with the special shell CLSID for the Computer folder.


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 

 Process.Start("shell:::{20D04FE0-3AEA-1069-A2D8-08002B30309D}") 

 End Sub

Key Details

• CLSID vs. Shell Command. Both ::{20D04FE0-3AEA-1069-A2D8-08002B30309D} and shell:MyComputerFolder point to the exact same system directory showing your local drives and connected devices.Process.Start("explorer.exe", "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}").

• Opening a Specific Drive. If you want to open a specific drive (like C:\) instead of the main Computer overview, pass the drive letter as the argument: Process.Start("explorer.exe", "C:\").

Thats it!

Sources: Google
                Lawrence Albert Pardo Ilao


Read more...

Unlock For Us

Account Types in Windows

 Windows user accounts are categorized based on how they are authenticated/managed and what level of privilege they hold on the system.

Accessing User Accounts Panel

> Press Win+R

> type "control /name Microsoft.UserAccounts"

Viewing List of users

> Press, Win+R, type "cmd" and press enter or type "netplwiz"

>at cmd.exe, type net user

User accounts for \\DESKTOP-UEQN8SM


Administrator            DefaultAccount           Guest

un                       unlockforus              WDAGUtilityAccount

The command completed successfully.



Types Privilege Level (What the account can do)

Administrator:

• Has complete, unrestricted control over the computer.

• Can install or uninstall software, change core system settings, access all files, and create or delete other user accounts.

Standard User:

• Designed for safe, everyday use.

• Can run installed apps, browse the web, and change personal account settings, but cannot install new software or modify system-wide files without an administrator password (via User Account Control - UAC).

Summary

Standard accounts can use most software and change system settings which dont affect other users or the security of this PC.

Administrators have complete control over the PC. They can change settings and access all of the files and programs stored.



Read more...

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 8. Dim value As Integer = CInt(Int((8 * 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.

Vb.Net Integrated Development Environment



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 @2026-2027| Blogger| License Agreement| Author| Contact Us