-
HTML5 socket在线聊天程序 源码
HTML5 socket在线聊天程序 源码
- 2014-09-13下载
- 积分:1
-
RS-232接口 示例源码下载 SerialPortTerminal
RS-232接口 示例源码下载 SerialPortTerminal
- 2021-04-20 23:48:49下载
- 积分:1
-
关于datagridview控件的简单例子,更容易理解一些
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace DataGridViewSample{ public partial class Form1 : Form { public static List Tests = new List(); public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { this.dataGridView1.DataSource = Tests; } private void button1_Click(object sender, EventArgs e) { frmAdd form = new frmAdd(null); if (form.ShowDialog() == DialogResult.OK) { this.dataGridView1.DataSource = null; this.dataGridView1.DataSource = Tests; } } private void button2_Click(object sender, EventArgs e) { if (this.dataGridView1.SelectedRows != null) { frmAdd form = new frmAdd(new Test( Convert.ToInt32(this.dataGridView1.SelectedRows[0].Cells[0].Value), Convert.ToDecimal(this.dataGridView1.SelectedRows[0].Cells[1].Value), Convert.ToDateTime(this.dataGridView1.SelectedRows[0].Cells[2].Value), this.dataGridView1.SelectedRows[0].Cells[3].Value.ToString())); if (form.ShowDialog() == DialogResult.OK) { this.dataGridView1.DataSource = null; this.dataGridView1.DataSource = Tests; } } } private void button3_Click(object sender, EventArgs e) { //使用前面示例中的代码,用DataGridView或者List来做导出都是可以的 } } public class Test { public Test(int id, decimal voltage, DateTime record, string remark) { ID = id; Voltage = voltage; Record = record; Remark = remark; } public int ID { get; set; } public decimal Voltage { get; set; } public DateTime Record { get; set; } public string Remark { get; set; } }}
- 2015-06-11下载
- 积分:1
-
蓝桥杯习题(历届试题及答案)
【实例简介】
- 2021-07-23 00:31:15下载
- 积分:1
-
c# 人事管理系统完整源码下载(考勤管理、简历管理)
人事管理系统完整源码(含数据库),其中有 员工简历、考勤录入等功能 友情提示:附加数据库之后,修改 y.cn 中的数据库连接 即可使用(登录账号:10001 密码:123456) public y() { pobjConn.ConnectionString = "server=.;database=rsgl;uid=sa;pwd=sa"; }
- 2014-12-18下载
- 积分:1
-
ASP.NET 带Tab的可换肤后台模板
ASP.NET 带Tab的可换肤后台模板 Tab可切换皮肤的后台模板功能介绍: 1、可以换皮肤、其中住框架、具体页面可以统一使用皮肤。2、tab页标题有右键菜单,新开、全屏打开,刷新。双击标题也可以刷新。3、可以收放菜单栏。使用方法:基本上主框架页面不需要作任何的变动了,直接就可以用,就不讲了。在这里主要讲一下使用tabControl:tabControl新开一个页面实际上是通过JS在主显示区域建立一个iframe 把这个iframe的src 指向我们指定的页面。讨厌的BUG:这个BUG一直都困饶了我好长时间,并且实在不知道怎么解决,甚至连问题出在哪里都不知道。BUG描述:在频繁的打开关闭的时候tab页后,有时候会出现界面里的textbox控件鼠标点击无法聚焦的问题。整体刷新框架就可以聚焦。
- 2015-01-12下载
- 积分:1
-
C# Winform 实现对sql server 的增删改查刷新等功能
C# Winform 实现对sql server 的增删改查刷新等功能
- 2018-12-09下载
- 积分:1
-
C# 下载图片示例
using System;using System.Web;public class DownImg : IHttpHandler { //图片下载功能 public void ProcessRequest(HttpContext context) { System.Net.WebResponse response = null; System.IO.Stream stream = null; string path = context.Request.Url.Query.Split(new string[] { "coverimg=" }, StringSplitOptions.RemoveEmptyEntries)[1]; System.Net.HttpWebRequest request = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(path); response = request.GetResponse(); stream = response.GetResponseStream(); System.IO.MemoryStream memStream = Txooo.Mobile.HttpTools.CloneStream(stream); byte[] bytes = new byte[memStream.Length]; memStream.Read(bytes, 0, bytes.Length); // 设置当前流的位置为流的开始 memStream.Seek(0, System.IO.SeekOrigin.Begin); context.Response.ContentType = "application/octet-stream"; //通知浏览器下载文件而不是打开 string fileName = DateTime.Now.Ticks.ToString() ".jpg"; context.Response.AddHeader("Content-Disposition", "attachment; filename=" fileName); context.Response.BinaryWrite(bytes); context.Response.Flush(); } public bool IsReusable { get { return false; } }}
- 2014-05-29下载
- 积分:1
-
C++ 三维面积图(提高篇-实例517).zip
C++ 三维面积图(提高篇-实例517).zip
- 2019-10-02下载
- 积分:1
-
利用c#和pictureBox实现图片的ZOOM显示
利用c#和pictureBox实现图片的ZOOM显示。 图片的zoom显示
- 2013-12-23下载
- 积分:1