Devolutions Utils reference library
WinFormsUtils Class
NamespacesDevolutions.UtilsWinFormsUtils
This class contains some Windows Form utility functions.
Declaration Syntax
C#Visual BasicVisual C++
public static class WinFormsUtils
Public NotInheritable Class WinFormsUtils
public ref class WinFormsUtils abstract sealed
Members
All MembersMethodsProperties



IconMemberDescription
ApplicationIcon
Return the application icon

CreateDragAndDropStartZone(Int32, Int32)
Create a default start zone for the drag and drop.

DataGridViewSelectOnRightClick(Object, MouseEventArgs)
Implement the event for a default select right click behavior used to select an item on right click in a DataGridView.

DefaultFormText
Return the default form title used in Devolutions Utils like OpenFile, SaveFile... by default, it return the

DropShadowSupported
Indicate if the form drop shadow is supported by the OS

ExtractIcon(String, Boolean)
Extract the small or the large icon from a file.

FindListViewGroup(ListView, String)
Search a ListView group by with it's name

FindListViewItemFromTag(ListView, Object)
Return a ListView item matching where tag is equal to a value

FindTreeNodeFromTag(TreeNode, Object)
Find a tree node in a Node.

FindTreeNodeFromTag(TreeView, Object)
Find a tree node in a TreeView.

MainWindowText
Return the main window text

OpenFile(String)
Select a file with a OpenFile dialog

OpenFile(String, String)
Select a file with a OpenFile dialog

OpenFiles(String, String)
Select a file with a OpenFile dialog

SaveFile(String, String)
Select a file with a SaveFile dialog

TitleBarHeightDelta
Return the default Delta for the Title Bar size between Windows XP with Theme and Windows 2000. Windows 2000 is the baseline.

TreeViewAutoScroll(TreeView, DragEventArgs)
Used to add an autoscroll behavior in a treeview when the user execute a drag and drop.

TreeViewContainsNode(TreeNode, TreeNode)
Return true if a treeview node contains an other node.

TreeViewDefaultDragOver(Object, DragEventArgs)
Default behavior for a drag over: a - auto open closed nodes - autoscroll

TreeViewDefaultItemDrag(Object, ItemDragEventArgs)
Default TreeView Default Item Drag.

Inheritance Hierarchy
Object
WinFormsUtils

Assembly: Devolutions.Utils (Module: Devolutions.Utils)