System.Windows.Forms.Dll汇编,获取我可以在Windows窗体应用程序中使用的列表。

编程入门 行业动态 更新时间:2024-10-28 22:24:08
本文介绍了System.Windows.Forms.Dll汇编,获取我可以在Windows窗体应用程序中使用的列表。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我使用Windows窗体进行编码,有很多引用,例如:

I code using Windows Forms, there are lots of references like:

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Reflection;

但这不是全部。 现在,我的目标是找到我可以在Windows Forms技术中使用的所有引用来制作应用程序。我知道我不能使用所有.Net Framework。 其中一个用户建议使用Assembly加载System.Windows.Forms.dll程序集并使用它。 结果是下一个代码:

But that is not all of them. Now, my goal is to find all the references i can use in Windows Forms technology to make apps. I know i can not use all the .Net Framework. One of the users advised to use Assembly to load "System.Windows.Forms.dll" assembly and i used it. The result is the next code:

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Reflection; namespace _123_Assembly { public partial class Form1 : Form { public Form1() { InitializeComponent(); Assembly assembly = Assembly.LoadFrom(@"C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Windows.Forms.dll"); Type[] types = assembly.GetTypes(); string data = String.Empty; foreach (Type type in types) { data += type.ToString() + "\r\n"; foreach (MemberInfo member in type.GetMembers()) { data += " " + member.ToString() + "\r\n"; } } System.IO.StreamWriter writer = new System.IO.StreamWriter(@"C:\Users\user\Desktop\Writer.txt"); writer.Write(data); writer.Close(); } } }

我把所有内容写入你可以在线打开的文本文件中: drive.google/file/d/ 0B4MmPdhmZzQAampsUGlvLXVlaVU / view?usp = sharing [ ^ ] 我可以在.Net Framework的Windows窗体应用程序中使用它吗? 我认为不,因为我找不到,例如,跟随引用和许多其他人:

I wrote everything into a text file you can open online: drive.google/file/d/0B4MmPdhmZzQAampsUGlvLXVlaVU/view?usp=sharing[^] Is it all what i can use in my Windows Forms application from .Net Framework? I think no, because i could not find, for example, following references and many others:

using System.Drawing; using System.Drawing.Drawing2D;

我知道它让你烦恼,但这是我的学习曲线,我总是用我找到我搜索的内容而且这个案例也不例外。 我读了你在最后一个帖子中写的内容,你真的很明智人们,但有时很难帮助学生。 谢谢。

I know it is annoying you, but it is my learning curve, i always used finding what i searched for and this case is not an exception. I read what you wrote in the last thread, you are really wise people, but it is hard sometimes to help students. Thank you.

引用:

您可以使用语音识别是System.Windows.Forms,但是您想要包含它吗?如果你考虑一下,你就会明白自己没有问过什么。

You can use speech recognition is System.Windows.Forms, but do you want to include it? If you think about it, you will understand yourself that you don't asking about anything certain.

我知道,我可以使用任何使用Platform Invoke在C ++中创建的.dll文件,我可以使用3d派对库。 但据我所知,当我打开我的项目时,有一些基本参考。

I know, i can use any .dll file made in C++ using Platform Invoke, i can use 3d party libraries. But as i understand when i open my project, there are certain base references.

推荐答案

为什么不学习使用免费提供的工具?整个列表位于: msdn.microsoft/en -us / library / gg145045(v = vs.110).aspx [ ^ ]。 Why not learn to use the tools that are freely available? The entire list is at: msdn.microsoft/en-us/library/gg145045(v=vs.110).aspx[^].

更多推荐

System.Windows.Forms.Dll汇编,获取我可以在Windows窗体应用程序中使用的列表。

本文发布于:2023-11-09 17:00:37,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1572927.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:窗体   应用程序   列表   Windows   System

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!