会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
王文姿
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
下一页
2015年6月28日
wpf 配置文件属性 1
摘要: public MainWindow() { InitializeComponent(); this.WindowState = Properties.Settings.Default.WindowState;//初始化窗体状态 Prope...
阅读全文
posted @ 2015-06-28 08:56 王文姿
阅读(227)
评论(0)
推荐(0)
2015年6月22日
HTML 的常用知识点
摘要: HTML基础知识网页三部份内容:HTML CSS Javascript路径:一般做网页的时候用的相对路径。images/aaa.jpg 网页同一个目录中找images文件夹,再在images里面找aaa.jpgimages/1000/aaa.jpg 网页同一个目录中找images文件夹...
阅读全文
posted @ 2015-06-22 09:38 王文姿
阅读(281)
评论(0)
推荐(0)
2015年6月19日
winfrom 从网页中通过源代码截取文章
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
阅读全文
posted @ 2015-06-19 09:38 王文姿
阅读(222)
评论(0)
推荐(0)
2015年6月18日
winfrom 网页中抓取源代码
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
阅读全文
posted @ 2015-06-18 09:30 王文姿
阅读(213)
评论(0)
推荐(1)
2015年6月15日
C# 操作txt文件的方法大全
摘要: c# 操作txt文件 # 操作txt文件 c#创建文本private const string FILE_NAME = "ErroLog.txt"; public static void WriteFile(string str) ...{ S...
阅读全文
posted @ 2015-06-15 09:23 王文姿
阅读(3965)
评论(0)
推荐(0)
winfrom 去掉字符串空格
摘要: 1)Trim方法string tt=" aaa "; tt=tt.Trim() 去字符串首尾空格的函数tt=tt.TrimEnd() 去掉字符串尾空格tt=tt.TrimStart() 去掉字符串首空格
阅读全文
posted @ 2015-06-15 09:20 王文姿
阅读(371)
评论(0)
推荐(0)
c# 保存和打开文件的方法
摘要: 复制代码1、打开文件路径: OpenFileDialog a= new OpenFileDialog(); //new一个方法a.Filter = "(*.et;*.xls;*.xlsx)|*.et;*.xls;*.xlsx|all|*.*"; //删选、设定文件显示类型a.ShowDialog(...
阅读全文
posted @ 2015-06-15 09:18 王文姿
阅读(1118)
评论(0)
推荐(0)
2015年6月12日
winfrom (1) 窗体传值 连接 (2)鼠标移动窗口
摘要: private void button1_Click(object sender, EventArgs e) //这里是不用泛型集合的情况,用的是Datatable { SqlConnection conn = new SqlConnection("server=...
阅读全文
posted @ 2015-06-12 15:25 王文姿
阅读(260)
评论(0)
推荐(0)
2015年6月8日
传窗体 点完修改页面的修改后,直接在主窗体显示修改后的内容
摘要: private void button3_Click(object sender, EventArgs e) { if(listView1.SelectedItems.Count>0) { string x = listView1.Select...
阅读全文
posted @ 2015-06-08 22:40 王文姿
阅读(184)
评论(0)
推荐(0)
winfrom 窗体传值和限制窗口只弹出一次
摘要: private void button1_Click(object sender, EventArgs e) //登陆页面的第一栏的文本 要将它传到Main窗体的状态栏 { //...
阅读全文
posted @ 2015-06-08 22:39 王文姿
阅读(355)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告