Library code snippets
Show/Hide Desktop Icons
By Adil Hussain Raza, published on 15 Oct 2005
This code uses API calls to Hide/Unhide icons on the desktop. Put this code in a Module. Then Call these functions when needed! This code uses FindWindowEx & ShowWindow API Calls to do the job.
API Declarations:Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Function DesktopIconsShow()
Dim hwnd As Long
hwnd = FindWindowEx(0&, 0&, "Progman", vbNullString)
ShowWindow hwnd, 5
End Function
Function DesktopIconsHide()
Dim hwnd As Long
hwnd = FindWindowEx(0&, 0&, "Progman", vbNullString)
ShowWindow hwnd, 0
End Function
Related articles
Related discussion
-
Problem with migration to C# (CoCreateInstanceEx)
by LRollison (1 replies)
-
VB6 Problem Creating Shortcuts
by rb1177 (0 replies)
-
how can i open a file
by kyawswarhtun (0 replies)
-
how to save any one form what i want?
by blackguy (5 replies)
-
Build an MP3 Player
by soybees (4 replies)
Related podcasts
-
Christian Beauclair
14 mai 2008 (�mission #0074) ::.Christian Beauclair: Stratégies de migration VB6 vers .NET Nous discutons avec Christian Beauclair des stratégies de migration VB6 vers .NET. Entre autres, nous discutons comment utiliser le "VB 6 Code Advisor" et le "Interop Forms Toolkit" pour ajouter la puiss...
for(int i =0;i<textBox1.Lines.Length;i++)
{
MessageBox.Show(textBox1.Lines.ToString());
}
The logic is,
the textbox,internally consists of an array called Lines that constitutes each line in the multiline textbox.
ll help u.GOODLUCK
Hi
How to get each line from the multiline textbox in vb.net
This thread is for discussions of Show/Hide Desktop Icons.