Sky Software Homepage LogicNP Software Knowledge Base And FAQ

 
Contact Product Support    SearchSearch      Subscribe to the RSS feed for this forum

HOWTO: Prevent files from being shown in FileView

 
Subscribe to the RSS feed for this forum  Forum Index -> FileView ActiveX Control
View previous topic :: View next topic  
Author Message
Support



Joined: 18 Jul 2005
Posts: 731

Posted: Fri Feb 06, 2009 10:54 am    Post subject: HOWTO: Prevent files from being shown in FileView

To prevent files from being shown in FileView, use the following code in the OnAfterItemAdd event:
[C#]
Code:
void CFilViewVCDlg::OnOnAfterItemAddFileviewctrl1(LPDISPATCH Item)
{
  CListItem item;
  item.AttachDispatch(Item,FALSE);

  if (!item.IsFolder())
  {
    item.Delete();
  }
}

[VB6]
Code:
Private Sub fileVw_OnAfterItemAdd(ByVal Item As FileViewControl.IListItem)

  If (Item.IsFolder = False) Then
  Item.Delete
  End If

End Sub
Back to top
Display posts from previous:   
Forum Index -> FileView ActiveX Control All times are GMT
Page 1 of 1

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group