how do i click on listview with "large icons mode" to hide panel?

12padams

Well-known member
Joined
Feb 19, 2010
Messages
48
Programming Experience
Beginner
I am making an operating system and it has icons on the desktop and the whole desktop is a list view...

Problem i have is I did this:
VB.NET:
    Private Sub desktopicons_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles desktopicons.Click
        startmenu.Hide()
    End Sub

"desktopicons" is the list view if your wondering...

The problem is this code does not work unless when i click the desktop i actually click on a item in listview (an icon)

How do i make it so that when i click the listview and don't accually click an item in listveiw it hides the panel?
 
You can use MouseDown or MouseUp event.
 
Back
Top