随笔分类 - WINFORM
摘要:在VS 2005中,经常会使用到ConfigurationSettings类来读取应用程序配置文件的信息,以获取数据库连接的字符串,但是,经常会出现如下的错误:警告“System.Configuration.ConfigurationSettings.GetConfig(string)”已过时:“This method is obsolete, it has b...
阅读全文
摘要:-. WinForm多线程编程 1. new Thread() 新开一个线程,执行一个方法,没有参数传递: private void DoWork() { Thread t = new Thread(new ThreadStart(this.DoSomething)); t.Start(); } pr...
阅读全文
摘要:为大家提供一个抓取系统的源码,供大家参考,请大家多多提出宝贵意见,谢谢!!! 抓取系统
阅读全文
摘要:在Microsoft Learning站点,放上去了两个SharePoint 2007开发相关的在线课程,加上之前的两个介绍性质的,一起列在下面。 Getting Started with Microsoft Windows SharePoint Services 3.0 (Beta) Getting Started with Microsoft Office SharePoint Serv...
阅读全文
摘要:今天给大家列出一些代码,仅供参考 列出数据层和逻辑层的代码 WebPage类 Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 1using System; 2using System.Collections.Generic; 3...
阅读全文
摘要:最近写了一个网络爬虫的程序,供大家参考 程序的思路如下: 一:需要过滤器过滤出所需的内容,得到一个内容集合; 二:从过滤出的内容集合里过滤出所需要(比如:可以是新闻标题和地址)的列表; 三:得到下一页的地址; 四:根据得到的标题的链接去得到该页的详细内容; 五:更加下一页的地址继续循环,ok! 注意:在执行上,最好加线程进行执行,否则会影响效率。这个...
阅读全文
摘要:.cs文件内容: private void GetData() { try { // Specify a connection string. Replace the given value with a // valid connection string ...
阅读全文
摘要:private void GetData() { try { // Specify a connection string. Replace the given value with a // valid connection string for a Northwind SQL Server sam...
阅读全文
摘要:private void OnFormLoad(object sender, EventArgs e) { // Get the data set with parent / child tables into a data set CustomersDataSet customers = CustomersDataSet.GetCustomers(); // Set up the data s...
阅读全文
摘要:private void OnFormLoad(object sender, EventArgs e) { // Set up event handlers for connector position changed // and text box text changed events m_CustomersBindingSource.PositionChanged += OnPosition...
阅读全文
摘要:本博客已搬家 地址:www.czhphp.com 所有更新都会在新博客进行 谢谢大家的支持! Binding Data Collections to Multi-Valued ControlsAnother common scenario is to populate a list box or combo box from a property within a collection of data. Listing 3.1 showed an example of this. The code to bind a combo box or list box isn't all th
阅读全文
摘要:拖动datagridview到form上,点击datagridview的右上方选择数据源进行绑定即可 Binding Data Collections to a Grid One of the most common and visually satisfying things to do with data binding is to have a set of data presented i...
阅读全文
摘要:Your First Data-Bound Windows Forms 2.0 Application To get your hands dirty early with Windows Forms 2.0 and Visual Studio 2005, the following procedures give a quick demonstration of their easy and p...
阅读全文