<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>特投网 - C#/.NET</title>
    <link>https://www.tetou.cn/forum-73-1.html</link>
    <description>Latest 20 threads of C#/.NET</description>
    <copyright>Copyright(C) 特投网</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Tue, 30 Jun 2026 17:26:01 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://www.tetou.cn/static/image/common/logo_88_31.gif</url>
      <title>特投网</title>
      <link>https://www.tetou.cn/</link>
    </image>
    <item>
      <title>c#下如何让messagebox置于最前</title>
      <link>https://www.tetou.cn/thread-1379-1-1.html</link>
      <description><![CDATA[MessageShow(this,\&quot;msg\&quot;);

转自：http://bbs.csdn.net/topics/390110579]]></description>
      <category>C#/.NET</category>
      <author>tetou</author>
      <pubDate>Fri, 27 May 2016 07:18:04 +0000</pubDate>
    </item>
    <item>
      <title>C#中 怎么获得某一个控件中图片的某一点像素的颜色值</title>
      <link>https://www.tetou.cn/thread-1378-1-1.html</link>
      <description><![CDATA[要使用GetPixel函数来取得像素的颜色值，代码如下：
        private void button1_Click(object sender, EventArgs e)
        {
            Color color = new Bitmap(pictureBox1.Image).GetPixel(10, 10);
            MessageBox.Show(color.ToString());
        ...]]></description>
      <category>C#/.NET</category>
      <author>tetou</author>
      <pubDate>Fri, 27 May 2016 07:10:39 +0000</pubDate>
    </item>
    <item>
      <title>C# 加盐密码哈希</title>
      <link>https://www.tetou.cn/thread-1377-1-1.html</link>
      <description><![CDATA[using System;
using System.Text;
using System.Security.Cryptography;

namespace PasswordHash
{
    /// 
    /// Salted password hashing with PBKDF2-SHA1.
    /// Author: havoc AT defuse.ca
    /// www: http://crackstation.net/hashing-security.htm]]></description>
      <category>C#/.NET</category>
      <author>tetou</author>
      <pubDate>Fri, 27 May 2016 07:09:24 +0000</pubDate>
    </item>
    <item>
      <title>C#实现AES加密和解密函数</title>
      <link>https://www.tetou.cn/thread-1376-1-1.html</link>
      <description><![CDATA[AES简介

AES（The Advanced Encryption Standard）是美国国家标准与技术研究所用于加密电子数据的规范。它被预期能成为人们公认的加密包括金融、电信和政府数字信息的方法。

AES 是一个新的可以用于保护电子数据的加密算法。明确地说，AES 是一个迭代的、对称密钥分组 ...]]></description>
      <category>C#/.NET</category>
      <author>tetou</author>
      <pubDate>Fri, 27 May 2016 07:07:43 +0000</pubDate>
    </item>
    <item>
      <title>C# HashSet集合类型使用介绍</title>
      <link>https://www.tetou.cn/thread-1375-1-1.html</link>
      <description><![CDATA[1.HashSet集合
HashSet是以数学Set集合为基础的，使用HashSet可以提高集合的运算。使用HashSet集合不自带排序方法，如果需要排序的需求可以参考使用List集合配合Sort方法。
HashSet的优势在与运算快，作为一种存放在内存的数据，可以很快的进行设置和取值的操作。HashSe ...]]></description>
      <category>C#/.NET</category>
      <author>tetou</author>
      <pubDate>Fri, 27 May 2016 07:06:38 +0000</pubDate>
    </item>
    <item>
      <title>C# 查标准正态分布表</title>
      <link>https://www.tetou.cn/thread-1374-1-1.html</link>
      <description><![CDATA[static double[] ayZTFB = null;

/// 
/// 计算标准正态分布表
/// 
/// 
/// 
public static double CalcN(double input)
{
]]></description>
      <category>C#/.NET</category>
      <author>tetou</author>
<enclosure url="https://oss.tetou.cn/tetou/forum/{
" length="" type="image/jpeg" />      <pubDate>Fri, 27 May 2016 07:05:21 +0000</pubDate>
    </item>
    <item>
      <title>C# 获取IPCONFIG 返回值</title>
      <link>https://www.tetou.cn/thread-1373-1-1.html</link>
      <description><![CDATA[/// 
        /// 获取IPCONFIG返回值
        /// 
        /// 返回 IPCONFIG输出
        public static string GetIPConfigReturns()
        {
            string version = System.Environment.OSVersion.VersionString;
 
            if (version.Contains(\&quot;Wi ...]]></description>
      <category>C#/.NET</category>
      <author>tetou</author>
      <pubDate>Fri, 27 May 2016 07:04:13 +0000</pubDate>
    </item>
    <item>
      <title>C#中集成dll到exe中的方法</title>
      <link>https://www.tetou.cn/thread-1372-1-1.html</link>
      <description><![CDATA[【最新整理： 2013-04-11】把dll文件添加为资源文件项目属性-&gt;Resources-&gt;Add Resource-&gt;Add Existing File：然后注意设置过滤规则为 *.*，才能显示出来dll文件，然后把dll添加进来：把dll文件添加到项目中【此步骤可选】右击项目-&gt;添加-&gt;新建文件夹：再导入对应的dll文 ...]]></description>
      <category>C#/.NET</category>
      <author>tetou</author>
      <pubDate>Fri, 27 May 2016 07:00:54 +0000</pubDate>
    </item>
    <item>
      <title>C# 怎么获得启动目录</title>
      <link>https://www.tetou.cn/thread-1371-1-1.html</link>
      <description><![CDATA[// 获取程序的基目录。
System.AppDomain.CurrentDomain.BaseDirectory
 
// 获取模块的完整路径。
System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName
 
// 获取和设置当前目录(该进程从中启动的目录)的完全限定目录。
System.Environment.CurrentDi ...]]></description>
      <category>C#/.NET</category>
      <author>tetou</author>
      <pubDate>Fri, 27 May 2016 06:56:28 +0000</pubDate>
    </item>
    <item>
      <title>C# Winform ListView使用</title>
      <link>https://www.tetou.cn/thread-1370-1-1.html</link>
      <description><![CDATA[一、基本使用：

listView.View = View.Details;//设置视图  
listView.SmallImageList = imageList;//设置图标  
  
//添加列  
listView.Columns.Add(\&quot;本地路径\&quot;, 150, HorizontalAlignment.Left);  
listView.Columns.Add(\&quot;远程路径\&quot;, 150, HorizontalAlignment.Left ...]]></description>
      <category>C#/.NET</category>
      <author>tetou</author>
      <pubDate>Fri, 27 May 2016 06:55:28 +0000</pubDate>
    </item>
    <item>
      <title>C# 未在本地计算机上注册“Microsoft.Jet.OLEDB.4.0”提供程序</title>
      <link>https://www.tetou.cn/thread-1369-1-1.html</link>
      <description><![CDATA[在菜单 “项目”的最下面 工程属性  菜单，选择“生成”选项卡，将目标平台由“Amy CPU”或者“*64”改成“*86”。

转自：http://zhidao.baidu.com/link?url=UcMDIRW05yH2NyvxbfqbqF3RBsiXT_ELNAUcXJSBBMxCu8iUd2U9W9OGiUPG-95pr0ThTnv0xgVoZOlyCFyuiq ...]]></description>
      <category>C#/.NET</category>
      <author>tetou</author>
      <pubDate>Fri, 27 May 2016 06:53:06 +0000</pubDate>
    </item>
    <item>
      <title>C# 如何判断一个字符串是不是日期型数据</title>
      <link>https://www.tetou.cn/thread-1368-1-1.html</link>
      <description><![CDATA[string date = \&quot;2001-1-5\&quot;;

            DateTime dt;

            if (DateTime.TryParse(date, out dt))
            {
                Console.WriteLine(dt);
            }
            else
            {
                throw new Exception(\&quot;不是正确的]]></description>
      <category>C#/.NET</category>
      <author>tetou</author>
      <pubDate>Fri, 27 May 2016 06:52:10 +0000</pubDate>
    </item>
    <item>
      <title>C#遍历指定文件夹中的所有文件</title>
      <link>https://www.tetou.cn/thread-1282-1-1.html</link>
      <description><![CDATA[C#遍历指定文件夹中的所有文件 
DirectoryInfo TheFolder=new DirectoryInfo(folderFullName);
//遍历文件夹
foreach(DirectoryInfo NextFolder in TheFolder.GetDirectories())
   this.listBox1.Items.Add(NextFolder.Name);
//遍历文件
foreach(FileInfo NextFile in ...]]></description>
      <category>C#/.NET</category>
      <author>tetou</author>
      <pubDate>Mon, 07 Mar 2016 11:48:24 +0000</pubDate>
    </item>
    <item>
      <title>C#double转化成字符串 保留小数位数, 不以科学计数法的形式...</title>
      <link>https://www.tetou.cn/thread-1281-1-1.html</link>
      <description><![CDATA[在C#中大家都会遇到这种情况 double类型的数据，需要格式化（保留N未有效数字）或者是保留N为小数等情况，我们往往采取double.tostring(\&quot;参数\&quot;);的方法。下面就列出几个常用的方法。

double temp=3.1415926;

(F)Fixed point:string str1=temp.toString(\&quot;f1\&quot;);//保留一 ...]]></description>
      <category>C#/.NET</category>
      <author>tetou</author>
      <pubDate>Mon, 07 Mar 2016 11:47:23 +0000</pubDate>
    </item>
    <item>
      <title>access数据库里面有一张表，通过listview控件显示出来</title>
      <link>https://www.tetou.cn/thread-1280-1-1.html</link>
      <description><![CDATA[using System;
using System.Collections.Generic;
using System.Text;
using System.Data.OleDb;
using System.Data;
using System.Windows.Forms;
using System.Windows;

namespace WindowsApplication1
{
    class Class1
    {
        public static OleD]]></description>
      <category>C#/.NET</category>
      <author>tetou</author>
      <pubDate>Mon, 07 Mar 2016 11:45:49 +0000</pubDate>
    </item>
    <item>
      <title>C#/.NET不使用判断语句实现Bytes到KB,MB,GB,TB单位智能转换</title>
      <link>https://www.tetou.cn/thread-1279-1-1.html</link>
      <description><![CDATA[在C#/.NET的开发中，如果遇到需要实现Bytes到KB,MB,GB,TB单位转换这样的问题，你会想到的方法有哪些呢？使用if或者switch判断语句，根据传入的Bytes大小来判断返回对应的单位？形如：

public static string ConvertByte(long len)
{
  if(len&gt;1024&amp;&amp;len1024*1024&amp;&amp;len= ...]]></description>
      <category>C#/.NET</category>
      <author>tetou</author>
      <pubDate>Mon, 07 Mar 2016 11:39:26 +0000</pubDate>
    </item>
    <item>
      <title>C#实现右下角图标(系统托盘)功能</title>
      <link>https://www.tetou.cn/thread-1278-1-1.html</link>
      <description><![CDATA[窗体中拖入　notifyIcon 组件

notifyIcon 中的 ICON 属性 显示的图标

下面是系统托盘的基本功能代码（单击最小化窗体隐藏,双击图标显示）及窗体关闭时退出确认代码。

　   //单击最小化窗体隐藏

　　private void frmMain_SizeChanged(object sender, EventArgs e)
 ...]]></description>
      <category>C#/.NET</category>
      <author>tetou</author>
      <pubDate>Mon, 07 Mar 2016 11:36:59 +0000</pubDate>
    </item>
    <item>
      <title>C# .net防止一个程序(WinForm)重复运行的方法</title>
      <link>https://www.tetou.cn/thread-1277-1-1.html</link>
      <description><![CDATA[//在写一些服务型的软件的时候，你可能不希望一个操作系统里有两个副本在运行，这样也许会扰乱你的操作。这时，你就需要限制程序的副本。下面的这个方法，很简单的就可以实现上述功能。

using System;
using System.Collections.Generic;
using System.Windows.Forms;
 ...]]></description>
      <category>C#/.NET</category>
      <author>tetou</author>
      <pubDate>Mon, 07 Mar 2016 11:31:18 +0000</pubDate>
    </item>
    <item>
      <title>深入C#判断操作系统类型的总结详解</title>
      <link>https://www.tetou.cn/thread-1242-1-1.html</link>
      <description><![CDATA[Windows操作系统的版本号一览
 

获取操作系统信息的相关类或属性
//获取系统信息
System.OperatingSystem osInfo = System.Environment.OSVersion; 
//获取操作系统ID
System.PlatformID platformID = osInfo.Platform;
//获取主版本号
int versionMajor = osInfo.Vers ...]]></description>
      <category>C#/.NET</category>
      <author>tetou</author>
      <pubDate>Mon, 08 Feb 2016 09:53:10 +0000</pubDate>
    </item>
    <item>
      <title>关于C#操作INI文件的总结</title>
      <link>https://www.tetou.cn/thread-1239-1-1.html</link>
      <description><![CDATA[INI文件其实是一种具有特定结构的文本文件，它的构成分为三部分，结构如下：
[Section1]
key 1 = value2
key 1 = value2
……
[Section2]
key 1 = value1
key 2 = value2
……
文件由若干个段落（section）组成，每个段落又分成若干个键（key）和值（value）。Windows ...]]></description>
      <category>C#/.NET</category>
      <author>tetou</author>
      <pubDate>Mon, 08 Feb 2016 09:26:55 +0000</pubDate>
    </item>
  </channel>
</rss>