-
test0328
实现屏幕上显示自定义形状 并实现了对形状内部填充色及边框的颜色处理 实现了 图形的移动 并对其边界进行限制(Realize the screen to customize the shape and realize the shape of the internal fill color and border color to achieve a deal with the movement of graphics and border restrictions)
- 2008-05-11 13:41:44下载
- 积分:1
-
自动登录qq空间,获取最近访客列表.
自动登录qq空间,获取最近访客列表.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 WindowsFormsApplication1{ public partial class Form1 : Form { Timer terAutologin = new Timer(); public Form1() { InitializeComponent(); terAutologin.Enabled = true; terAutologin.Interval = 3 * 1000; terAutologin.Tick = ter_Tick; } void ter_Tick(object sender, EventArgs e) { if(wb1.Document==null) { return; } HtmlElement dialog_content_1 = wb1.Document.GetElementById("dialog_content_1"); if (dialog_content_1 == null) { return; } var frame = wb1.Document.Window.Frames[0]; if (frame==null) { return; } if (frame.Document==null) { return; } // iframe HtmlElement u = frame.Document.GetElementById("u"); u.InnerText = "171586098"; HtmlElement p = frame.Document.GetElementById("p"); p.InnerText = "*************"; p.SetAttribute("value", "********"); HtmlElement login_button = frame.Document.GetElementById("login_button"); login_button.InvokeMember("click"); terAutologin.Stop(); } private void Form1_Load(object sender, EventArgs e) { ssl1.Text = string.Empty; txtUrl.Text = "http://user.qzone.qq.com/14371939"; wb1.ScriptErrorsSuppressed = true; wb1.Navigate("http://user.qzone.qq.com/14371939/main"); } private void btnGO_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(txtUrl.Text)) { wb1.Navigate(txtUrl.Text); ssl1.Text = txtUrl.Text " Navigated"; } } private void wb1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { System.Diagnostics.Trace.WriteLine(e.Url.ToString()); // http://g.cnc.qzone.qq.com/cgi-bin/friendshow/cgi_get_visitor_simple?uin=4371939&type=1&mask=3&rd=0.7801240284461528&_=1397644130601&g_tk=9281770 ssl1.Text = e.Url.ToString() " Completed"; tryRead(); } private void btnTest_Click(object sender, EventArgs e) { tryRead(); } private void tryRead() { if (wb1.Document == null) { return; } HtmlElement pagediv = wb1.Document.GetElementById("visitor_list_page_con"); if (pagediv==null) { return; } //若分页内容存在,则表示已经加载过了. if(pagediv.Children.Count>0) { handlerAbc(null,null); return; } //模拟点击 "最近访客" var aa = pagediv.Parent.Parent.FirstChild.Children[2]; aa.InvokeMember("click"); //给访问列表的容器绑定一个事件...回调时就能获取到. HtmlElement guestlist = pagediv.Parent.FirstChild; //ul.RaiseEvent guestlist.AttachEventHandler("onpropertychange", new EventHandler(handlerAbc)); } private void handlerAbc(Object sender, EventArgs e) { HtmlElement div = wb1.Document.GetElementById("visitor_list_page_con"); HtmlElement guestlist = div.Parent.FirstChild; if (guestlist.InnerHtml.IndexOf("QZONE.FrontPage.showLoginBox") > -1) { HtmlElement alogin = guestlist.GetElementsByTagName("a")[0]; alogin.InvokeMember("click"); // 使用定时器.检测登录窗口的出现.. terAutologin.Start(); return; } else { System.Text.StringBuilder sb = new StringBuilder(); // 取回里面的内容? foreach (HtmlElement li in guestlist.Children) { string qq = li.GetAttribute("uin"); string visitname = li.Children[1].FirstChild.InnerText; string visittime = li.Children[1].Children[1].InnerText; sb.AppendLine(qq visitname visittime); } MessageBox.Show(sb.ToString()); } } }}
- 2014-04-18下载
- 积分:1
-
一元多项式相加 模块具体功能如下: 1.链表存储多项式的结构 2.实现两个多项式相加...
一元多项式相加 模块具体功能如下: 1.链表存储多项式的结构 2.实现两个多项式相加-one yuan polynomial function of the sum of specific modules, as follows : 1. Chain store the structure of two polynomials. Add to achieve two polynomials
- 2022-02-04 06:48:15下载
- 积分:1
-
三维空间直线拟合
利用最小二乘法进行空间直线拟合。
包含空间直线的定义,求逆矩阵算法的实现。
最主要的是函数的定义,多个函数返回值的实现。
- 2022-07-06 08:40:37下载
- 积分:1
-
C# WPF 图片旋转、放大、扭曲、平移、不透明蒙版等
这是一个C#图像处理程序,把一张图片平移、顺时针角度旋转、按一定角度扭曲、使用不透明蒙版等功能,以下是实现具体功能的代码,把这些处理功能封装到按钮事件中:
private void button2_Click(object sender, RoutedEventArgs e)
{//缩放图像
if (this.button2.Content=="放大图像")
{
ScaleTransform MyScaleTransform = new ScaleTransform();
MyScaleTransform.CenterX = this.image1.Width / 2;
MyScaleTransform.CenterY = this.image1.Height / 2;
MyScaleTransform.ScaleX = 1.5;
MyScaleTransform.ScaleY = 1.5;
this.image1.RenderTransform = MyScaleTransform;
this.button2.Content = "缩小图像";
}else{
ScaleTransform MyScaleTransform = new ScaleTransform();
MyScaleTransform.CenterX = this.image1.Width / 2;
MyScaleTransform.CenterY = this.image1.Height / 2;
MyScaleTransform.ScaleX = 0.5;
MyScaleTransform.ScaleY = 0.5;
this.image1.RenderTransform = MyScaleTransform;
this.button2.Content = "放大图像";
}
}
private void button3_Click(object send
- 2023-01-22 02:10:03下载
- 积分:1
-
Temperature-PID
热敏电阻采样,实现对温度的闭环控制,包含PID算法的运用。(Thermistor sampling achieve closed-loop temperature control, including the use of the PID algorithm.)
- 2015-03-20 15:43:51下载
- 积分:1
-
学生学籍成绩管理系统,自己编的,不对请指教
学生学籍成绩管理系统,自己编的,不对请指教-Students in school performance management systems, own, and do not, please advice
- 2022-03-13 00:09:35下载
- 积分:1
-
threesynmachinezy
电力系统潮流计算,基于三机九节点,可以在说明的基础上增加节点,改变线路阻抗导纳以及功率(Power system power flow calculation)
- 2018-05-05 19:22:01下载
- 积分:1
-
bijingxuan
用VC6实现的一个超级漂亮的编辑框。可以自己配置编辑框的颜色,美化界面。(A super nice with VC6 edit box. Can configure their own color of the edit box and beautify the interface.)
- 2013-04-03 10:07:01下载
- 积分:1
-
2048源码
这个是2048的源程序,曾经经典的游戏,通过方向键输入(This is the source of 2048, the classic game, entered through the direction key.)
- 2018-12-31 17:18:36下载
- 积分:1