如何在 Linux 中安装 Visual Studio Code

大家好,今天我们一起来学习如何在 Linux 发行版中安装 Visual Studio Code。Visual Studio Code 是基于 Electron 优化代码后的编辑器,后者是基于 Chromium 的一款软件,用于为桌面系统发布 io.js 应用。Visual Studio Code 是微软开发的支持包括 Linux 在内的全平台代码编辑器和文本编辑器。它是免费软件但不开源,在专有软 …… 阅读全文

.NET开发使用Winform的配置文件App.config

这段时间进入Socket的开发,设置IP和端口一直很麻烦。开始时在Textbox里写死为本地IP。传到服务器上运行还需要改成服务器IP。查了查资料,发现WinForm也可以使用配置文件(以前没想到过)。以上是为Winform配置的配置文件App.Config。编译后,会在.exe同目录下生成*.exe.config的文件。传到服务器上一次,以后就不用再麻烦的修改了。如果 …… 阅读全文

DotNet2.0不允许线程互操作各控件的解决方法。

首先定义一个委托:delegate void AgentInfo(string ip, string agentName);在需要的地主通过委拖还设置另一个线程的信息。 AgentInfo ai = new AgentInfo(ShowAgentInfo); this.Invoke(ai, ip, agentNa …… 阅读全文

用C#实现Des加密和解密

usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Security.Cryptography;using …… 阅读全文

创建自定义类型的强类型化集合

以下创建了一个Person类型的强类型化集合。using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.We …… 阅读全文

C#中使窗体显示SplitContainer或Panel中。

private void menuStepAdd_Click(object sender, EventArgs e) { frmAddStep addStep = new frmAddStep(); addStep.FormBorderStyle = FormBorderStyle.None; addStep.Top …… 阅读全文