-
7Zip
This file is part of SevenZipSharp. SevenZipSharp is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. SevenZipSharp is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with SevenZipSharp. If not, see .
- 2022-07-20 00:09:31下载
- 积分:1
-
C# WPF设置图片做为程序窗口背景
C# WPF设置程序窗口背景图片的例子,调用外部一张图片,作为程序窗口的背景,这是一个挺基础的C#窗口设计制作小例子。本程序通过定义BitmapImage和ImageBrush()来实现,有兴趣的参见以下几行代码:
设置WPF程序的背景图像代码如下:
var MyImage = new BitmapImage(new Uri("J001.jpg", UriKind.Relative));
var MyBrush = new ImageBrush();
MyBrush.ImageSource = MyImage;
this.Background = MyBrush;
本例的运行效果请参见下图示。
- 2022-02-28 22:19:19下载
- 积分:1
-
决战NEO服务器端源码
完整得决战NEO服务器端源码,修改一下可以自己直接使用
- 2022-12-01 18:10:07下载
- 积分:1
-
C#使用微信模拟发送post消息请求
C#模拟发送post请求,使用微信模拟消息,Post请求模拟器。
WebClient wc = new WebClient();
wc.Headers.Add("Content-Type", "application/x-www-form-urlencoded");
byte[] postdata = Encoding.UTF8.GetBytes(poststr);
byte[] responseData = wc.UploadData(textBox3.Text, "POST", postdata);//得到返回字符流
textBox2.Text = Encoding.UTF8.GetString(responseData);
- 2022-11-24 04:30:03下载
- 积分:1
-
C# 使视频播放窗口倾斜一定的角度
C# 使视频播放窗口倾斜一定的角度,且播放窗口会随着主窗口大小的改变而自动变大或变小,窗口倾斜的角度可自己调整,这里是倾斜-30度,你可以改变这个值,编译源代码查看效果。关于窗口倾斜功能的核心代码,请参见以下代码:
this.mediaElement1.Source = new Uri("Bear.wmv", UriKind.Relative);
RotateTransform MyRotateTransform = new RotateTransform();
MyRotateTransform.Angle = -30;
this.mediaElement1.RenderTransform = MyRotateTransform;
需要完整源码的请在本页面下载哦。
- 2023-06-05 00:30:04下载
- 积分:1
-
鬼影源码去验证码3389 版本 用户
鬼影源码去验证码3389 版本 用户 鬼影源码去验证码非常好用的
- 2023-02-13 00:05:04下载
- 积分:1
-
C# 修复Access数据库的一个范例程序
C# 修复Access数据库的一个范例程序,不过不知道到底能不能修复吧,这个修复过程的编写,可参考以下代码:
//声明临时数据库的名称
string temp = DateTime.Now.Year.ToString();
temp += DateTime.Now.Month.ToString();
temp += DateTime.Now.Day.ToString();
temp += DateTime.Now.Hour.ToString();
temp += DateTime.Now.Minute.ToString();
temp += DateTime.Now.Second.ToString() + ".bak";
temp = strPathMdb.Substring(0, strPathMdb.LastIndexOf("") + 1) + temp;
//定义临时数据库的连接字符串
string temp2 = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + temp;
//定义目标数据库的连接字符串
string strPathMdb2 = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + strPathMdb;
JRO.JetEngineClass jt = new JRO.JetEngineClass();//创建一个JetEngineClass对象
//使用JetEngineClass对象的CompactDatabase方法压缩修复数据库
jt.CompactDatabase(strPathMdb2, temp2);
File.Copy(temp, strPathMdb, true);//拷贝临时数据库到目标数据库(覆盖)
File.Delete(temp);//删除临时数据库
MessageBox.Show("修复完成");
这个程序中使用了三个类库:Interop.ADODB.dll、Interop.ADOX.dll、Interop.JRO.dll。
- 2022-01-26 03:31:51下载
- 积分:1
-
C# AVG、SUM、COUNT、SqlHelper等函数用法示例
本源码主要是一些C#数据库操作函数的示例,比如使用函数AVG计算数值字段平均值、使用函数SUM计算数值字段累加和
使用函数COUNT统计数据库记录数、使用SqlHelper查询数据库记录、使用SqlHelper获取聚合函数值、使用SqlHelper增加数据库记录等,每一个例子都有详细的源代码。
实现这些功能需要调用Microsoft.ApplicationBlocks.Data.dll,DataAccessApplicationBlock.msi已打包在源码包中。
程序运行效果如下图示,单击对应按钮即可查看对应的功能演示,测试前请先连接好数据库。
- 2022-10-25 05:55:02下载
- 积分:1
-
MFC股票软件源码
MFC股票软件源码,用来分析股票数据。
- 2022-07-06 19:06:18下载
- 积分:1
-
C#将listBox值添加到Textbox控件中
C#将listBox值添加到Textbox控件中,在Listbox中输入任意内容,单击添加按钮即可将此内容添加到Textbox文本框中显示,同时还将值从ListBox中移除:
添加值:
listBox1.Items.Add(textBox1.Text);
textBox1.Text = "";
将值从listBox移除:
listBox1.Items.Remove(listBox1.SelectedItem);
- 2022-06-15 11:46:02下载
- 积分:1