Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

Rated
Read 18,582 times

Related Categories

Show/Hide Desktop Icons

MahR

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

Adil is doing MCS from Virtual University Of Pakistan. He is working as a software developer for 3 years. He has developed several customized commercial software in Haroon Abad City for various clients. He has also developed Urdu Unicode enabled active-x controls that you can find on his website. Which include Urdu Text Box, Urdu Command Button, Urdu Label, Urdu Frame, Urdu Radio and Check Box. They can be used to make Urdu Enabled applications in Visual Basic, Visual FoxPro or any other IDE that supports Active-X.

Comments

  • Multiline textbox

    Posted by baludoubts on 28 Nov 2005

    This is the code in C#:

    for(int i =0;i {
    MessageBox.Show(textBox1.Lines[i].ToString());
    }

    The logic is,

    the textbox,internally consists of an array called Lines ...

  • about multiline textbox

    Posted by vsnlth on 24 Nov 2005

    Hi
    How to get each line from the multiline textbox in vb.net