HEISADECIMAL编辑器在视觉C# [英] HEXADECIMAL EDITOR IN VISUAL C#

查看:91
本文介绍了HEISADECIMAL编辑器在视觉C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

CodeProject的大家好,美好的一天。



我做了一个软件,将文件内容转换为十六进制编辑器到文本格式,这是一个非常好的数据恢复的基本形式。



我的问题是,如何在软件中添加选项以选择我要编辑的驱动器?



我的意思是,类似于:选择驱动器C:/ D:/ ...



然后显示在软件整个磁盘用十六进制编辑器。



我希望你能帮我这个,非常感谢高级。

Hello guys from CodeProject, nice day.

I have done a software that transforms the content of a file into hexadecimal editor to text form, this is a very basic form of data recovery.

my question here is, how could I add the option in the software for select the drive that I want to edit?

I mean, something like: Choose the drive C: / D: / ...

and then display in the software the entire disk in hexadecimal editor.

I hope you can help me with this, thanks a lot in advanced.

推荐答案

您可以通过

System.IO.DriveInfo.GetDrives() [ ^ ]



希望,它有帮助:)
You can get list of drives by
System.IO.DriveInfo.GetDrives()[^]

Hope, it helps :)


这是如何: https://msdn.microsoft.com/en-us/library/system.io.driveinfo.getdrives%28v=vs.110%29.aspx [< a href =https://msdn.microsoft.com/en-us/library/system.io.driveinfo.getdrives%28v=vs.110%29.aspxtarget =_ blanktitle =New Window> ^ ]。



列出驱动器并将驱动器信息放在某些列表框控件中。您没有告诉我们您使用的UI框架/库是什么样的(也许您认为在.NET FCL下只有一个?这不是:-)),因此更详细地讨论它是没有意义的;解决方案可能非常简单。



-SA


这篇关于HEISADECIMAL编辑器在视觉C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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