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;
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();
}
}
}
I wrote everything into a text file you can open online:
https://drive.google.com/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.
Quote:
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.
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.