Skip to content

Code-Artist/MediaDevices.Control

Repository files navigation

MediaDevices.Control

Introduction

MediaDevices.Control is a Windows Form Control for MediaDevices to interact with MTP (Media Transport Protocol) and PTP (Picture Transport Protocol) devices like cell phones.

NOTE: These package is only tested with Android Device.

Download

Features

Media Device Select Dialog

WinForms Dialog to select connected device by it's description. DeviceSelectDialog

Usage:

using (MediaDeviceSelectDialog dlg = new MediaDeviceSelectDialog())
{
   if (dlg.ShowDialog() == DialogResult.OK)
   {
      string device = dlg.SelectedDevice;
   }
}

Media Device Folder Browser

WinForms Dialog to select folder on a connected MTP / PTP device. NOTE: The connected device must enable PTP or MTP in order for Windows to access it's files and folders. Folder Browser

Usage:

using (MediaDeviceFolderBrowseDialog dialog = new MediaDeviceFolderBrowseDialog("My Phone"))
{
    dialog.InitialDirectory = "\\Folder\\Startup";
    if(dialog.ShowDialog() == DialogResult.OK)
    {
        string SelectedFolder = dialog.SelectedFolder;
    }
}

Media Device File Browser

User control to browse files and folder on selected device. Just drag and drop to your application to use. FileBrowser

About

WinForms Controls for Media Device

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages