C#.NET分类(winFrom)
wlinglong
主要从事SQL数据库开发和mis系统开发
展开
-
C#下字符串处理方法
单个字符分割 string s="abcdeabcdeabcde"; string[] sArray=s.Split(c); foreach(string i in sArray) Console.WriteLine(i.ToString()); 输出下面的结果: ab deab deab de 多个字符分割 string s="abcdeabcdeabcde string[] sArra转载 2007-01-01 13:03:00 · 609 阅读 · 0 评论 -
上一条和下一条记录
private void button9_Click(object sender, EventArgs e)//下一条记录按钮 { if (dataGridView1.CurrentCell.RowIndex != dataGridView1.RowCount - 1) { this.dataGridView1转载 2008-03-10 16:54:00 · 632 阅读 · 0 评论 -
将datagridview 的焦点放在某一行
private List m_lstPhone ; // //*填充m_lstPhone // dataGridView1.DataSource = m_lstPhone; CurrencyManager _cm = (CurrencyManager)dataGridView1.BindingContext[m_lstPhone]; _cm.Position = m_lstPhone转载 2008-03-10 16:57:00 · 1122 阅读 · 0 评论 -
DataSet
screen.width-333)this.width=screen.width-333" border="0" />转载 2007-05-15 23:11:00 · 484 阅读 · 0 评论 -
.net最小化到状态栏
Private Sub frmMain_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.ClosingMe.WindowState = FormWindowState.Minimizede.Cancel = TrueEnd Sub转载 2007-05-15 23:07:00 · 800 阅读 · 0 评论 -
datawindow.net2.0在 .NET中调用选中行高亮显示
事件:RowFocusChanged Int32 li_dwgetrow; li_dwgetrow = dw1.CurrentRow; //读取当前行 if (li_dwgetrow==0) { return;转载 2007-05-10 12:07:00 · 837 阅读 · 0 评论 -
用c#创建支持多语言的应用程序
互联网无国界,越来越多的应用程序必须面对全球用户了,如何设计一个支持多国语言的应用程序呢?在.net2.0 中,m$ 为我们提供了一种简单方便的方法, 使用资源文件1.新建一个 Winform 应用程序, 新建一 Form ,名为 Form1,添加两个按钮 btnChinese, btnEnglish2. 设置 Form1 的 Localizable 属性为 true, 设置该属性后,.net 将转载 2007-06-27 11:50:00 · 1737 阅读 · 0 评论 -
C#下拉窗口中输入字符自动检索到下拉对应的位置
在TextChanged事件中来响应:private void comboBox1_TextChanged(object sender, EventArgs e){int index = comboBox1.FindString(comboBox1.Text);if (index != -1){comboBox1.DroppedDown = true;comboBox1.SelectedIndex转载 2007-01-05 13:39:00 · 1418 阅读 · 0 评论 -
C#下读取INI文件类
using System.Runtime.InteropServices;using System.Text; namespace INIFile{/// /// 读写ini文件的类/// 调用kernel32.dll中的两个api:WritePrivateProfileString,GetPrivateProfileString来实现对ini 文件的读写。////// INI文转载 2007-01-01 12:59:00 · 663 阅读 · 0 评论 -
ASP.NET 2.0资料收藏
原帖:http://blog.csdn.net/mengyao/archive/2007/03/14/1528557.aspxasp.net控件开发基础(1) GridView模版列嵌套GirdView显示主从表数据 GridView中添加一个CheckBox列 域环境中安装部署VSTS全过程 设置VSS使支持通过Internet访问转载 2008-04-16 11:10:00 · 578 阅读 · 1 评论