48
Is there a way to change the header names

axExShellView1.ColumnNames = "Name(Ime),Date modified(Datum),Item type(Tip),Size(Velikost)";

47
Disable or prevent the header's context-menu
axExShellView1.AllowContextMenu = EXSHELLVIEWLib.AllowContextMenuEnum.exAllowListViewContextMenu;

46
Disable or prevent the list-view's context-menu
axExShellView1.AllowContextMenu = EXSHELLVIEWLib.AllowContextMenuEnum.exAllowHeaderContextMenu;

45
Disable or prevent the control's context-menu
axExShellView1.AllowContextMenu = EXSHELLVIEWLib.AllowContextMenuEnum.exDisableContextMenu;

44
How can I add my own items, without the default context menu

// InvokeMenuCommand event - Fired when the user selects an item context menu that has been added during QueryContextMenu event.
private void axExShellView1_InvokeMenuCommand(object sender, AxEXSHELLVIEWLib._IExShellViewEvents_InvokeMenuCommandEvent e)
{
	System.Diagnostics.Debug.Print( e.command.ToString() );
}
//this.axExShellView1.InvokeMenuCommand += new AxEXSHELLVIEWLib._IExShellViewEvents_InvokeMenuCommandEventHandler(this.axExShellView1_InvokeMenuCommand);

// QueryContextMenu event - Fired when the context menu is about to be active. You can supply new items to the context menu.
private void axExShellView1_QueryContextMenu(object sender, AxEXSHELLVIEWLib._IExShellViewEvents_QueryContextMenuEvent e)
{
	e.separator = ",";
	e.items = "My First Item,My Second Item";
}
//this.axExShellView1.QueryContextMenu += new AxEXSHELLVIEWLib._IExShellViewEvents_QueryContextMenuEventHandler(this.axExShellView1_QueryContextMenu);

axExShellView1.DefaultMenuItems = false;
axExShellView1.BrowseFolder = "c:\\Temp";

43
How can I add my own items

// InvokeMenuCommand event - Fired when the user selects an item context menu that has been added during QueryContextMenu event.
private void axExShellView1_InvokeMenuCommand(object sender, AxEXSHELLVIEWLib._IExShellViewEvents_InvokeMenuCommandEvent e)
{
	System.Diagnostics.Debug.Print( e.command.ToString() );
}
//this.axExShellView1.InvokeMenuCommand += new AxEXSHELLVIEWLib._IExShellViewEvents_InvokeMenuCommandEventHandler(this.axExShellView1_InvokeMenuCommand);

// QueryContextMenu event - Fired when the context menu is about to be active. You can supply new items to the context menu.
private void axExShellView1_QueryContextMenu(object sender, AxEXSHELLVIEWLib._IExShellViewEvents_QueryContextMenuEvent e)
{
	e.separator = ",";
	e.items = ",My First Item,My Second Item";
}
//this.axExShellView1.QueryContextMenu += new AxEXSHELLVIEWLib._IExShellViewEvents_QueryContextMenuEventHandler(this.axExShellView1_QueryContextMenu);

axExShellView1.BrowseFolder = "c:\\Temp";

42
The InvokeCommand("open") will not work on a german. What can I do
// DblClick event - Occurs when the user dblclk the left mouse button over an object.
private void axExShellView1_DblClick(object sender, EventArgs e)
{
	// Objects(0).InvokeCommand("Open")
	axExShellView1.Objects.Get(EXSHELLVIEWLib.ObjectTypeEnum.SelectedItems);
}
//this.axExShellView1.DblClick += new EventHandler(this.axExShellView1_DblClick);

// InvokeItemMenu event - Notifies the application once the user selects a command in the context menu.
private void axExShellView1_InvokeItemMenu(object sender, AxEXSHELLVIEWLib._IExShellViewEvents_InvokeItemMenuEvent e)
{
	System.Diagnostics.Debug.Print( e.command.ToString() );
}
//this.axExShellView1.InvokeItemMenu += new AxEXSHELLVIEWLib._IExShellViewEvents_InvokeItemMenuEventHandler(this.axExShellView1_InvokeItemMenu);

axExShellView1.BrowseFolder = "c:\\Temp";

41
How can I open the file's properties when user double clicks it
// DblClick event - Occurs when the user dblclk the left mouse button over an object.
private void axExShellView1_DblClick(object sender, EventArgs e)
{
	// Objects(0).InvokeCommand("Properties")
	axExShellView1.Objects.Get(EXSHELLVIEWLib.ObjectTypeEnum.SelectedItems);
}
//this.axExShellView1.DblClick += new EventHandler(this.axExShellView1_DblClick);

axExShellView1.BrowseFolder = "c:\\Temp";

40
We're looking for a control to show files, just like the eXShellView, but than we would like to specify the files themselves. Is that possible using your control

axExShellView1.ViewMode = EXSHELLVIEWLib.ViewModeType.LargeIcons;
axExShellView1.HeaderVisible = false;
axExShellView1.BrowseFiles = "C:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\IDE\\devenv.exe|C:\\Program Files\\Microsoft Visual FoxPro 9\\vfp9.exe" +
"";

39
How do I prevent pressing the Backspace, or go up to the parent

// KeyDown event - Occurs when the user presses a key while an object has the focus.
private void axExShellView1_KeyDownEvent(object sender, AxEXSHELLVIEWLib._IExShellViewEvents_KeyDownEvent e)
{
	System.Diagnostics.Debug.Print( "Set the KeyCode = 0, if the KeyCode is 8 " );
	e.keyCode = 0;
}
//this.axExShellView1.KeyDownEvent += new AxEXSHELLVIEWLib._IExShellViewEvents_KeyDownEventHandler(this.axExShellView1_KeyDownEvent);

axExShellView1.ViewMode = EXSHELLVIEWLib.ViewModeType.Details;
axExShellView1.BrowseFolder = "c:\\Temp";
axExShellView1.Refresh();

38
How can I show grid lines around items

axExShellView1.ViewMode = EXSHELLVIEWLib.ViewModeType.Details;
axExShellView1.DrawGridLines = true;
axExShellView1.Refresh();

37
How can I prevent shwoing the overlay icons (shortcut icons have a small arrow in lower-left corner, shared folders have a hand that shows that folder is shared, etc. )

axExShellView1.ViewMode = EXSHELLVIEWLib.ViewModeType.LargeIcons;
axExShellView1.OverlayIcons = false;
axExShellView1.Refresh();

36
I need to provide my own context menu but I am not able to find RClick event. What can be done

// QueryContextMenu event - Fired when the context menu is about to be active. You can supply new items to the context menu.
private void axExShellView1_QueryContextMenu(object sender, AxEXSHELLVIEWLib._IExShellViewEvents_QueryContextMenuEvent e)
{
	System.Diagnostics.Debug.Print( "Show here your popup/context menu" );
}
//this.axExShellView1.QueryContextMenu += new AxEXSHELLVIEWLib._IExShellViewEvents_QueryContextMenuEventHandler(this.axExShellView1_QueryContextMenu);

axExShellView1.DefaultMenuItems = false;

35
How can I provide my own context menu (RClick event is missing)

// InvokeMenuCommand event - Fired when the user selects an item context menu that has been added during QueryContextMenu event.
private void axExShellView1_InvokeMenuCommand(object sender, AxEXSHELLVIEWLib._IExShellViewEvents_InvokeMenuCommandEvent e)
{
	System.Diagnostics.Debug.Print( e.command.ToString() );
}
//this.axExShellView1.InvokeMenuCommand += new AxEXSHELLVIEWLib._IExShellViewEvents_InvokeMenuCommandEventHandler(this.axExShellView1_InvokeMenuCommand);

// QueryContextMenu event - Fired when the context menu is about to be active. You can supply new items to the context menu.
private void axExShellView1_QueryContextMenu(object sender, AxEXSHELLVIEWLib._IExShellViewEvents_QueryContextMenuEvent e)
{
	e.separator = ",";
	e.items = "First,Second,Third";
}
//this.axExShellView1.QueryContextMenu += new AxEXSHELLVIEWLib._IExShellViewEvents_QueryContextMenuEventHandler(this.axExShellView1_QueryContextMenu);

axExShellView1.DefaultMenuItems = false;

34
Is it possible to specify the "Extra Large Icons" view

axExShellView1.ViewMode = EXSHELLVIEWLib.ViewModeType.Extra_Large_Icons;

33
Is it possible to specify the "Large Icons" view

axExShellView1.ViewMode = EXSHELLVIEWLib.ViewModeType.Large_Icons;

32
Is it possible to specify the "Medium Icons" view

axExShellView1.ViewMode = EXSHELLVIEWLib.ViewModeType.Medium_Icons;

31
How can I hide the file names

axExShellView1.HideFileNames = true;
axExShellView1.ViewMode = EXSHELLVIEWLib.ViewModeType.Thumbnail;

30
Is it possible to set the Auto Arrange and Align To Grid flags by code

axExShellView1.AutoArrange = true;
axExShellView1.AlignToGrid = true;
axExShellView1.ViewMode = EXSHELLVIEWLib.ViewModeType.Thumbnail;

29
Is it possible to set the Auto Arrange flag by code

axExShellView1.AutoArrange = true;
axExShellView1.ViewMode = EXSHELLVIEWLib.ViewModeType.Thumbnail;

28
How do I specify the current folder

axExShellView1.CurrentFolder = "c:\\windows";

27
Is it possible to disable showing tooltips for files and folders

axExShellView1.HideToolTips = true;

26
Is it possible to hide the control's header

axExShellView1.HeaderVisible = false;

25
How can I get the name of file being double clicked

// ObjectSelect event - Fired when the user selects a new object for browsing.
private void axExShellView1_ObjectSelect(object sender, AxEXSHELLVIEWLib._IExShellViewEvents_ObjectSelectEvent e)
{
	axExShellView1.CancelObjectSelect();
	System.Diagnostics.Debug.Print( e.object.ToString() );
}
//this.axExShellView1.ObjectSelect += new AxEXSHELLVIEWLib._IExShellViewEvents_ObjectSelectEventHandler(this.axExShellView1_ObjectSelect);


24
How can I prevent opening or selecting a folder or zip files when user double click it
// ObjectSelect event - Fired when the user selects a new object for browsing.
private void axExShellView1_ObjectSelect(object sender, AxEXSHELLVIEWLib._IExShellViewEvents_ObjectSelectEvent e)
{
	axExShellView1.CancelObjectSelect();
}
//this.axExShellView1.ObjectSelect += new AxEXSHELLVIEWLib._IExShellViewEvents_ObjectSelectEventHandler(this.axExShellView1_ObjectSelect);


23
Is it possible to list only files, no folders

axExShellView1.ModifyFolderFlags(EXSHELLVIEWLib.FolderFlagsEnum.NoSubFolders,EXSHELLVIEWLib.FolderFlagsEnum.NoFlag);

22
How can I enable multiple selection

axExShellView1.ModifyFolderFlags(EXSHELLVIEWLib.FolderFlagsEnum.NoFlag,EXSHELLVIEWLib.FolderFlagsEnum.SingleSel);
axExShellView1.Refresh();

21
How can I select a file or a folder

axExShellView1.Objects.Get(EXSHELLVIEWLib.ObjectTypeEnum.AllItems);
axExShellView1.Objects[0].SelectItem(EXSHELLVIEWLib.SelectItemFlagsEnum.Select);

20
How can I get all files and folders as they are listed
axExShellView1.Objects.Get(EXSHELLVIEWLib.ObjectTypeEnum.AsDisplayed | EXSHELLVIEWLib.ObjectTypeEnum.AllItems);
System.Diagnostics.Debug.Print( axExShellView1.Objects.Count.ToString() );

19
How can I get all files and folders being displayed
axExShellView1.Objects.Get(EXSHELLVIEWLib.ObjectTypeEnum.AllItems);
System.Diagnostics.Debug.Print( axExShellView1.Objects.Count.ToString() );

18
How do I get the selected files or folders as they are displayed
axExShellView1.Objects.Get(EXSHELLVIEWLib.ObjectTypeEnum.AsDisplayed | EXSHELLVIEWLib.ObjectTypeEnum.SelectedItems);
System.Diagnostics.Debug.Print( axExShellView1.Objects.Count.ToString() );

17
How do I get the selected files or folders
axExShellView1.Objects.Get(EXSHELLVIEWLib.ObjectTypeEnum.SelectedItems);
System.Diagnostics.Debug.Print( axExShellView1.Objects.Count.ToString() );

16
How can I disable or enable the control's context menu

axExShellView1.DefaultMenuItems = false;

15
How can I include only files that match a pattern

axExShellView1.IncludeObjectType = EXSHELLVIEWLib.IncludeObjectEnum.PatternObjects;
axExShellView1.FilePattern = "*.exe *.lnk";

14
How can I include only files that match a pattern

axExShellView1.IncludeObjectType = EXSHELLVIEWLib.IncludeObjectEnum.PatternObjects;
axExShellView1.FilePattern = "*.bmp";

13
How can I list only folders in the view

axExShellView1.IncludeObjectType = EXSHELLVIEWLib.IncludeObjectEnum.FoldersOnly;

12
How do I specify what objects files or folders should be included in the list

axExShellView1.IncludeObjectType = EXSHELLVIEWLib.IncludeObjectEnum.FoldersOnly;

11
How do I browse a special folder

axExShellView1.BrowseFolder = (axExShellView1.get_ShellFolder(axExShellView1.get_SpecialFolder(EXSHELLVIEWLib.SpecialFolderPathConstants.Programs)) as EXSHELLVIEWLib.ExShellFolder);

10
How can I go up to one level, so I can browse the parent folder

axExShellView1.BrowseFolder = (axExShellView1.get_ShellFolder("C:\\") as EXSHELLVIEWLib.ExShellFolder);
axExShellView1.UpOneLevel();

9
How do I browse a specified folder

axExShellView1.BrowseFolder = (axExShellView1.get_ShellFolder("C:\\") as EXSHELLVIEWLib.ExShellFolder);

8
How can I disable or enable the entire control

axExShellView1.Enabled = false;

7
How do I refresh the control
axExShellView1.Refresh();

6
How can I change the control's font

stdole.IFontDisp f = new stdole.StdFont() as stdole.IFontDisp;
	f.Name = "Verdana";
	f.Size = 12;
axExShellView1.Font = (f as stdole.IFontDisp);

5
How can I change the view, so it displays as THUMBNAIL

axExShellView1.ViewMode = EXSHELLVIEWLib.ViewModeType.Thumbnail;

4
How can I change the view, so it displays as a a grid with details

axExShellView1.ViewMode = EXSHELLVIEWLib.ViewModeType.Details;

3
How can I change the view, so it displays as a list

axExShellView1.ViewMode = EXSHELLVIEWLib.ViewModeType.List;

2
How can I change the view, so it displays small icons

axExShellView1.ViewMode = EXSHELLVIEWLib.ViewModeType.SmallIcon;

1
How can I change the view, so it displays large icons

axExShellView1.ViewMode = EXSHELLVIEWLib.ViewModeType.LargeIcons;