Ionic.Utils.FolderBrowserDialogEx.BecomePrinterBrowser C# (CSharp) Method

BecomePrinterBrowser() private method

private BecomePrinterBrowser ( ) : void
return void
	private void BecomePrinterBrowser()
	{
            _uiFlags += BrowseFlags.BIF_BROWSEFORPRINTER;
            Description = "Select a printer:";
            PInvoke.Shell32.SHGetSpecialFolderLocation(IntPtr.Zero, CSIDL.PRINTERS, ref this._rootFolderLocation);
            ShowNewFolderButton = false;
            ShowEditBox = false;
	}       

Usage Example

 // Factory Methods
 public static FolderBrowserDialogEx PrinterBrowser()
 {
     FolderBrowserDialogEx x = new FolderBrowserDialogEx();
     // avoid MBRO comppiler warning when passing _rootFolderLocation as a ref:
     x.BecomePrinterBrowser();
     return x;
 }
All Usage Examples Of Ionic.Utils.FolderBrowserDialogEx::BecomePrinterBrowser