Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Tue Jul 14, 2009 9:50 am Post subject: HOWTO: Open files/browse folders with a single click. |
|
|
By default, FileView browses folders or opens files when they are double-clicked. To do this with a single-click, set the HotTracking property to True and call the ListItem.Open method in the ItemClick event as follows:
[C#]
Code: | private void fileView1_ItemClick(object sender, LogicNP.FileViewControl.FileViewEventArgs e)
{
e.Item.Open();
} |
[VB.Net]
Code: | Private Sub fileView1_ItemClick(ByVal sender As System.Object, ByVal e As LogicNP.FileViewControl.FileViewEventArgs) Handles fileView1.ItemClick
e.Item.Open()
End Sub |
|
|