-
WebClient 实现网络文件下载实例源码(带进度)
WebClient 实现网络文件下载实例源码(带进度)
- 2014-06-11下载
- 积分:1
-
一卡通过管理系统
【实例简介】一卡通过管理系统
- 2021-11-30 00:45:53下载
- 积分:1
-
测试链接并显示查询数据
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;//Download by http://down.liehuo.netusing System.Data.SqlClient;namespace Case05_12{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { try { //生成连接数据库字符串 string ConStr = "data source=.;database=ljp;uid=sa;pwd=123"; //定义SqlConnection对象实例 SqlConnection con = new SqlConnection(ConStr); //定义Select查询语句 string Sql = "select*from biaoge"; SqlDataAdapter ada = new SqlDataAdapter(Sql, con); DataSet ds = new DataSet(); //定义DataSet对象实例 ada.Fill(ds); //连接数据表格,显示数据 this.dataGridView1.DataSource = ds.Tables[0].DefaultView; } catch { return; } } private void button2_Click(object sender, EventArgs e) { this.Close(); Application.Exit(); } }}
- 2014-10-02下载
- 积分:1
-
VS2012保存时自动格式化代码插件(Format On Save .vsix)
VS2012保存时自动格式化代码
- 2020-12-01下载
- 积分:1
-
动画效果浮动窗体实例
private void StopRectTimer_Tick(object sender, EventArgs e) { //如果鼠标在窗体上,则根据停靠位置显示整个窗体 if (this.Bounds.Contains(Cursor.Position)) { switch (this.StopDock) { case AnchorStyles.Top: this.Location = new Point(this.Location.X, 0); break; case AnchorStyles.Bottom: this.Location = new Point(this.Location.X, Screen.PrimaryScreen.Bounds.Height - this.Height); break; case AnchorStyles.Left: this.Location = new Point(0, this.Location.Y); break; case AnchorStyles.Right: this.Location = new Point(Screen.PrimaryScreen.Bounds.Width - this.Width, this.Location.Y); break; } } else //如果鼠标离开窗体,则根据停靠位置隐藏窗体,但须留出部分窗体边缘以便鼠标选中窗体 { switch (this.StopDock) { case AnchorStyles.Top: this.Location = new Point(this.Location.X, (this.Height - 3) * (-1)); break; case AnchorStyles.Bottom: this.Location = new Point(this.Location.X, Screen.PrimaryScreen.Bounds.Height - 5); break; case AnchorStyles.Left: this.Location = new Point((-1) * (this.Width - 3), this.Location.Y); break; case AnchorStyles.Right: this.Location = new Point(Screen.PrimaryScreen.Bounds.Width - 2, this.Location.Y); break; } } }
- 2015-06-10下载
- 积分:1
-
c#FORM服务器客户端UDP通讯实例
服务器客户端UDP广播通话 【核心代码】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;using System.Net.Sockets;using System.Net;namespace NetServer{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button2_Click(object sender, EventArgs e) { this.Close(); } private void Form1_Load(object sender, EventArgs e) { } private void button1_Click(object sender, EventArgs e) { //使用UDP协议发送数据 Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); //设置端口号 IPEndPoint ieps = new IPEndPoint(IPAddress.Broadcast, 8900); socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.Broadcast, 1); //将发送数据转换为字节数组 byte[] bytess = System.Text.Encoding.Unicode.GetBytes(textBox1.Text); socket.SendTo(bytess, ieps); socket.Close(); } }}
- 2020-05-31下载
- 积分:1
-
C# 多线程和Socket网络编程 示例源码(入门级)
C# 多线程和Socket网络编程 示例源码(入门级)
- 2017-11-27下载
- 积分:1
-
autocad开发基础与实践教程源代码
autocad开发基础与实践教程源代码
- 2015-04-19下载
- 积分:1
-
C# winform 仿文件浏览器 例子源码
C# winform 仿文件浏览器 例子源码
- 2013-10-02下载
- 积分:1
-
C#与ABB机器人建立通讯,上位机软件开发
C#与ABB机器人建立通讯,上位机软件开发
- 2019-07-26下载
- 积分:1