在自己的程序中使用Windows资源管理器预览窗格 [英] using windows explorer preview pane in own program

查看:331
本文介绍了在自己的程序中使用Windows资源管理器预览窗格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





当我使用Windows资源管理器(XP或Win7)时,我可以在嵌入式查看器中看到文件内容(Windows资源管理器预览窗格) 。



是否可以将此预览组件嵌入到.Net程序中?

我只想显示一些文件(主要是pdf) ,但并不总是)在我的程序中并排一些文件所属的附加信息。



Windows资源管理器预览窗格可以满足我的所有要求,除了它是不是我的程序的一部分。

我的应用程序是使用Visual Studio 2010用C#编写的。



我知道,这些观看者是在某处注册的Windows注册表。不幸的是我不知道如何使用这些组件。



我找到了Windows API代码包。但这只能说明如何创建这样的观众。不是如何在自己创建的程序中使用它们。



我最喜欢的解决方案是包装类,可以在标准的Windows窗体.Net应用程序中使用。



任何提示?

Hi,

When I use the windows explorer (XP or Win7), I can see the files content in an embedded viewer (the windows explorer preview pane).

Is it possible to embed this preview-component in a .Net program?
I just want to show some files (mostly pdf, but not always) in my program side by side with some additional information where the files belong to.

The windows explorer preview pane does all I want, except it is not part of my program.
My application is written in C# using Visual Studio 2010.

I know, these viewers are registered somewhere in the windows registry. Unfortunately I do not know how to use these components.

I found the Windows API Code Pack. But that only shows how to create such viewers. Not how to use them in a self created program.

My favorite solution would be a wrapper-class, that could be used in a standard windows forms .Net application.

Any hints?

推荐答案

你可以看一下Apex.WinForms.Controls.ShellListView



我认为这是你想要的
you can look Apex.WinForms.Controls.ShellListView

I think it is what you want


这篇关于在自己的程序中使用Windows资源管理器预览窗格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆