FREE VB.NET SOURCE CODE

Showing posts with label show. Show all posts
Showing posts with label show. Show all posts

27 March, 2012

[SNP] Show / Hide Folder Options in Windows Explorer [VB.NET]

 Shell("REG add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoFolderOptions /t REG_DWORD /d 1 /f", vbNormalFocus) 

A simple command, that uses registry, to enable or disable Folder Options in Windows Explorer.

Change the 1 to 0 to enable it again.

02 March, 2012

[SNP] Show / Hide Taskbar - Windows XP / 7 [VB.NET]

 Dim intReturn As Integer = FindWindow("Shell_traywnd", "")  
     SetWindowPos(intReturn, 0, 0, 0, 0, 0, SWP_HIDEWINDOW)  
This will disable the taskbar.
And to enable it:
change SWP_HIDEWINDOW to SWP_SHOWWINDOW