-
MFC股票软件源码
MFC股票软件源码,用来分析股票数据。
- 2022-07-06 19:06:18下载
- 积分:1
-
C# smtp协议winform版邮件发送例程
这是前两年使用Visuai C# 2015写的一个小程序,基于smtp协议开发的winform版邮件发送例程,可以发附件,邮件必须作用smtp协议。在用户交互界面,使用了正则对邮件各属性进行了检测判断,比如判断收件人、发件人邮件地址是否为空、验证邮件格式是否正确等,在发送邮件环节,主要的代码为:
//发送
SmtpClient client = new SmtpClient("smtp." + fs[0].ToString().Trim() + ".com"); //设置邮件协议
client.UseDefaultCredentials = false;//这一句得写前面
client.DeliveryMethod = SmtpDeliveryMethod.Network; //通过网络发送到Smtp服务器
client.Credentials = new NetworkCredential(fasong[0].ToString(), mmtxt); //通过用户名和密码 认证
MailMessage mmsg = new MailMessage(new MailAddress(fjrtxt), new MailAddress(sjrtxt)); //发件人和收件人的邮箱地址
mmsg.Subject = zttxt;//邮件主题
mmsg.SubjectEncoding = Encoding.UTF8; //主题编码
mmsg.Body = nrtxt; //邮件正文
mmsg.BodyEncoding = Encoding.UTF8;//正文编码
mmsg.IsBodyHtml = true; //设置为HTML格式
mmsg.Priority = MailPriority.High;//优先级
- 2022-05-31 05:25:26下载
- 积分:1
-
lua
lua源码 可编译 安装 使用库 内有说明文档readme.html lua是广泛使用的脚本语言,用途广泛
- 2023-03-10 12:30:04下载
- 积分:1
-
Visual C# WPF图片拉伸功能一例
Visual C# WPF图片拉伸功能一例,如图所示的运行效果,鼠标放在两幅图片的交接处,鼠标形状会变为拖动的样式,按住鼠标左键即可拖动图片向左、向右或向上向下拉伸,图片被拖拉变大或变小,非比例缩放,这种拖放是不按比例来的,完全由你鼠标控制的自由拖放功能。
- 2022-03-25 07:32:22下载
- 积分:1
-
Zigbee智能家居完整的源代码
Zigbee智能家居完整的源代码,含有终端和协调器工程并带有汉语注释。非常适合Zigbee开发。-Zigbee Smart Home complete source code, containing the terminal and the coordinator works with Chinese comments. Very suitable for the Zigbee development.
- 2022-03-05 18:50:08下载
- 积分:1
-
Visual C# Timer 构建的进度条演示
Visual C# Timer 构建的进度条演示,progressBar进度条的建立与使用,简单的范例,面向C#的初级开发者,希望初学者能够熟悉Loading如何创作哦,以下代码可以参考:
private void timer1_Tick(object sender, EventArgs e)
{
//使用三元运算符为progressBar的Value值自加1
progressBar1.Value = ++progressBar1.Value > 1000 - 1 ? 0 : progressBar1.Value;
//显示载入百分比
label2.Text = string.Format("已经载入{0}%", (int)(progressBar1.Value / 1000f * 100));
}
- 2022-04-16 04:00:01下载
- 积分:1
-
LIVE555协议源码
环境为VS2010+Win7,文件里包含编译好的live555、提取的4个lib、myLive555Header和编译截图,具体过程可以参考博文:http://www.cnblogs.com/skyseraph/
- 2022-05-22 12:22:07下载
- 积分:1
-
C# 禁止鼠标左键单击的实现源码
C# 禁止鼠标左键单击,附上例子源码,禁止后将不响应鼠标左键消息,当然也可恢复鼠标左键,直接关闭本程序即可恢复,实现方法也很简单,看如下代码:
private void button1_Click(object sender, EventArgs e)
{//禁止鼠标左键单击
Application.AddMessageFilter(this);
MessageBox.Show("鼠标左键已经被禁止,请用Tab键执行操作!", "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
private void button2_Click(object sender, EventArgs e)
{//允许鼠标左键单击
Application.RemoveMessageFilter(this);
MessageBox.Show("鼠标左键已经被解禁,可以执行操作!", "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
public bool PreFilterMessage(ref System.Windows.Forms.Message MySystemMessage)
{//不响应鼠标左键消息
if (MySystemMessage.Msg >= 513 && MySystemMessage.Msg
- 2022-03-09 09:45:43下载
- 积分:1
-
C# 保存对数据库记录的插入、删除及修改操作结果
C# 保存对数据库记录的插入、删除及修改操作结果,设置控件数据源,对操作的结果以MessageBox.Show在消息框中显示提示信息,执行过程中验证Shippers数据表、验证Phone字段、验证CompanyName字段
- 2022-04-08 04:57:49下载
- 积分:1
-
C# wpf 创建简单形状动画的例子
C# wpf 创建简单形状动画的例子,启动动画、停止动画、暂停动画、继续动画、加速动画。创建动画
Rectangle MyRectangle = new Rectangle();
MyRectangle.Width = 50;
MyRectangle.Height = 20;
MyRectangle.Margin = new Thickness(10, 50, 0, 0);
MyRectangle.Fill = new LinearGradientBrush(
Color.FromArgb(255, 0, 255, 255), Color.FromArgb(255, 0, 0, 255), 0);
MyRectangle.HorizontalAlignment = HorizontalAlignment.Left;
this.canvas1.Children.Add(MyRectangle);
this.RegisterName("MyRectangle", MyRectangle);
DoubleAnimation MyAnimation =
new DoubleAnimation(100, 380, new Duration(TimeSpan.FromSeconds(5)));
Storyboard.SetTargetName(MyAnimation, "MyRectangle");
Storyboard.SetTargetProperty(MyAnimation,
new PropertyPath(Rectangle.WidthProperty));
MyStoryboard = new Storyboard();
MyStoryboard.Children.Add(MyAnimation);
动画效果请参见下图所示,源代码请单击下载按钮下载。
- 2022-08-25 13:04:57下载
- 积分:1