C
cr113
I've got a form with a treeview object. When I double click on a
particular node in the treeview I open a second form. The second form
takes awhile to populate so I want to display an hourglass cursor. I
can't get the hourglass to display. What's odd is that it works from a
button click event but not the treeview double click event.
This code doesn't work:
Private Sub TreeView1_DblClick()
Call DoCmd.Hourglass(True)
DoCmd.OpenForm "SecondForm"
End Sub
This code works:
Private Sub Button_Click()
Call DoCmd.Hourglass(True)
DoCmd.OpenForm "SecondForm"
End Sub
The only difference is the event. What is going on?
particular node in the treeview I open a second form. The second form
takes awhile to populate so I want to display an hourglass cursor. I
can't get the hourglass to display. What's odd is that it works from a
button click event but not the treeview double click event.
This code doesn't work:
Private Sub TreeView1_DblClick()
Call DoCmd.Hourglass(True)
DoCmd.OpenForm "SecondForm"
End Sub
This code works:
Private Sub Button_Click()
Call DoCmd.Hourglass(True)
DoCmd.OpenForm "SecondForm"
End Sub
The only difference is the event. What is going on?