- 博客(3)
- 资源 (2)
- 收藏
- 关注
转载 (转帖) RichTextBox 实现查找字符串
private void button1_Click(object sender, EventArgs e) { string find = this.textBox1.Text; int index = this.richTextBox1.Find(find); if (index 0) {
2010-02-11 13:46:00
595
转载 (转帖)使用OpenFileDialog对话框打开文本文件(写此代码的人应该是有一定功力的程序员,因为代码写的很规范,很容易阅读,很好理解,很好调试)
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Data.SqlClient;using System.Drawing;using System.Text;using System.Windows.Forms;using System.I
2010-02-09 17:15:00
463
原创 SQLserver混合登陆改为SA登陆时,无法登陆的解决办法
当创建数据库没有为SA设置密码,而是直接用WINDOWS身份验证进行数据库连接,以后再想改回SA登陆时会有些麻烦。 假设,当你以WINDOWS身份验证的方式登陆到数据库后,为SA设置密码并启用后依然会出现登陆不上的情况。 错误提示大致如下:1、用户sa登录失败,该用户与可信sql server连接无关联。2、已成功与服务器建立连接,但是在登录过程中发生错误。 对于第
2009-05-11 09:26:00
1068
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人