C# 图标拖拽打开 我写了一个程序,想把一个txt文件拖拽到图标上,打开它。而非打开了程序拖动到窗口打开,请问有什么办法? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这个很简单呀,直接上代码Program.cspublic static string[] MyArgs; [STAThread] static void Main(string[] args) { MyArgs = args; Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); }Form1private void Form1_Load(object sender, EventArgs e) { using (StreamReader sr = new StreamReader(Program.MyArgs[0])) { richTextBox1.Text = sr.ReadToEnd(); } } 统计C盘(含子目录)所有文本文件(*.txt)中出现单词this、word 的个数。 C#数据库表数据生成XML文件 跪求解决方案 如何判断一个事件的产生 如何在基类中实现静态虚函数 求助,为何不能操作数据库中数据???? C#应用程序的客户端不安装.net 如何同步操作数据?初学者的困惑 请问各位朋友:如何将一个已知的XML文档读取到TreeView控件,谢谢 C#如何调用 CTP COM 组件并把获取到的行情数据刷新到 Excel 中 DevExpress 如何在工具栏中添加图标并且改变图标的大小 请问C#的的集合编辑器的左边那个列表控件是啥控件啊,该如何实现?
[STAThread]
static void Main(string[] args)
{
MyArgs = args;
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
Form1private void Form1_Load(object sender, EventArgs e)
{
using (StreamReader sr = new StreamReader(Program.MyArgs[0]))
{
richTextBox1.Text = sr.ReadToEnd();
}
}