随笔分类 -  WINFORM

摘要:在VS 2005中,经常会使用到ConfigurationSettings类来读取应用程序配置文件的信息,以获取数据库连接的字符串,但是,经常会出现如下的错误:警告“System.Configuration.ConfigurationSettings.GetConfig(string)”已过时:“This method is obsolete, it has b... 阅读全文
posted @ 2008-11-28 13:32 曹振华 阅读(1345) 评论(0) 推荐(0) 编辑
摘要:-. WinForm多线程编程 1. new Thread() 新开一个线程,执行一个方法,没有参数传递: private void DoWork() { Thread t = new Thread(new ThreadStart(this.DoSomething)); t.Start(); } pr... 阅读全文
posted @ 2008-01-27 18:28 曹振华 阅读(1249) 评论(0) 推荐(0) 编辑
摘要:为大家提供一个抓取系统的源码,供大家参考,请大家多多提出宝贵意见,谢谢!!! 抓取系统 阅读全文
posted @ 2008-01-24 15:18 曹振华 阅读(265) 评论(1) 推荐(0) 编辑
摘要:在Microsoft Learning站点,放上去了两个SharePoint 2007开发相关的在线课程,加上之前的两个介绍性质的,一起列在下面。 Getting Started with Microsoft Windows SharePoint Services 3.0 (Beta) Getting Started with Microsoft Office SharePoint Serv... 阅读全文
posted @ 2007-12-26 00:00 曹振华 阅读(231) 评论(0) 推荐(0) 编辑
摘要:今天给大家列出一些代码,仅供参考 列出数据层和逻辑层的代码 WebPage类 Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 1using System; 2using System.Collections.Generic; 3... 阅读全文
posted @ 2007-11-28 09:54 曹振华 阅读(1357) 评论(18) 推荐(0) 编辑
摘要:最近写了一个网络爬虫的程序,供大家参考 程序的思路如下: 一:需要过滤器过滤出所需的内容,得到一个内容集合; 二:从过滤出的内容集合里过滤出所需要(比如:可以是新闻标题和地址)的列表; 三:得到下一页的地址; 四:根据得到的标题的链接去得到该页的详细内容; 五:更加下一页的地址继续循环,ok! 注意:在执行上,最好加线程进行执行,否则会影响效率。这个... 阅读全文
posted @ 2007-11-27 17:46 曹振华 阅读(822) 评论(0) 推荐(0) 编辑
摘要:.cs文件内容: private void GetData() { try { // Specify a connection string. Replace the given value with a // valid connection string ... 阅读全文
posted @ 2007-11-25 22:59 曹振华 阅读(800) 评论(0) 推荐(0) 编辑
摘要:private void GetData() { try { // Specify a connection string. Replace the given value with a // valid connection string for a Northwind SQL Server sam... 阅读全文
posted @ 2007-11-25 21:46 曹振华 阅读(683) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2007-11-25 21:43 曹振华 阅读(353) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2007-11-25 21:36 曹振华 阅读(890) 评论(0) 推荐(0) 编辑
摘要:本博客已搬家 地址: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 阅读全文
posted @ 2007-11-25 21:20 曹振华 阅读(1356) 评论(0) 推荐(0) 编辑
摘要:拖动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... 阅读全文
posted @ 2007-11-25 21:18 曹振华 阅读(454) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2007-11-25 21:04 曹振华 阅读(312) 评论(0) 推荐(0) 编辑