资源简介
1、使用HTTP普通身份验证
2、实现功能:登录,微博首页微博列表,发布,转发,评论,收藏
3、使用BackgroundWorker实现微博列表翻页异步加载,微博列表获取的JSON格式的数据并进行反序列化
4、内置网络收集到的21种皮肤
5、供有兴趣的朋友参考(参考价值专用)
6、转载请注明出处

代码片段和文件信息
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 CustomPanels
{
public partial class RoundPanel : Panel
{
public RoundPanel()
{
InitializeComponent();
this.Padding = new System.Windows.Forms.Padding(0 0 0 0);
this.Margin = new System.Windows.Forms.Padding(0 0 0 0);
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
}
// 圆角
// ===============================================================================================
private int _Radius; // 圆角弧度
/// 圆角弧度(0为不要圆角)
[Browsable(true)]
[Description(“圆角弧度(0为不要圆角)“)]
public int RoundRadius
{
get
{
return _Radius;
}
set
{
if (value < 0) { _Radius = 0; }
else { _Radius = value; }
base.Refresh();
}
}
// 圆角代码
public void Round(System.Drawing.Region region)
{
// -----------------------------------------------------------------------------------------------
// 已经是.net提供给我们的最容易的改窗体的属性了(以前要自己调API)
System.Drawing.Drawing2D.GraphicsPath oPath = new System.Drawing.Drawing2D.GraphicsPath();
int x = 0;
int y = 0;
int thisWidth = this.Width;
int thisHeight = this.Height;
int angle = _Radius;
if (angle > 0)
{
System.Drawing.Graphics g = CreateGraphics();
oPath.AddArc(x y angle angle 180 90); // 左上角
oPath.AddArc(thisWidth - angle y angle angle 270 90); // 右上角
oPath.AddArc(thisWidth - angle thisHeight - angle angle angle 0 90); // 右下角
oPath.AddArc(x thisHeight - angle angle angle 90 90); // 左下角
oPath.CloseAllFigures();
Region = new System.Drawing.Region(oPath);
}
// -----------------------------------------------------------------------------------------------
else
{
oPath.AddLine(x + angle y thisWidth - angle y); // 顶端
oPath.AddLine(thisWidth y + angle thisWidth thisHeight - angle); // 右边
oPath.AddLine(thisWidth - angle thisHeight x + angle thisHeight); // 底边
oPath.AddLine(x y + angle x thisHeight - angle); // 左边
oPath.CloseAllFigures();
Region = new System.Drawing.Region(oPath);
}
}
// ====
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 7168 2011-01-11 19:07 weibo\CustomControls\bin\Debug\CustomControls.dll
文件 19968 2011-01-11 19:07 weibo\CustomControls\bin\Debug\CustomControls.pdb
文件 2903 2010-11-25 16:43 weibo\CustomControls\CustomControls.csproj
文件 280 2010-11-25 10:04 weibo\CustomControls\CustomControls.csproj.vspscc
文件 3597 2010-11-23 23:53 weibo\CustomControls\CustomPanel.cs
文件 1063 2010-11-23 23:48 weibo\CustomControls\CustomPanel.Designer.cs
文件 189 2010-11-25 16:38 weibo\CustomControls\mssccprj.scc
文件 352 2011-01-11 19:07 weibo\CustomControls\obj\Debug\CustomControls.csproj.FileListAbsolute.txt
文件 7168 2011-01-11 19:07 weibo\CustomControls\obj\Debug\CustomControls.dll
文件 19968 2011-01-11 19:07 weibo\CustomControls\obj\Debug\CustomControls.pdb
文件 5886 2011-01-11 19:07 weibo\CustomControls\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 1440 2010-11-23 23:45 weibo\CustomControls\Properties\AssemblyInfo.cs
....SHR 121 2010-11-25 10:04 weibo\CustomControls\Properties\vssver2.scc
文件 3134 2010-12-13 10:04 weibo\CustomControls\RowSpaceLabel.cs
文件 1068 2010-11-25 16:38 weibo\CustomControls\RowSpaceLabel.Designer.cs
....SHR 307 2010-12-13 10:04 weibo\CustomControls\vssver2.scc
文件 225 2010-11-22 11:58 weibo\dnmsc\App.config
文件 7168 2011-01-11 19:07 weibo\dnmsc\bin\Debug\CustomControls.dll
文件 19968 2011-01-11 19:07 weibo\dnmsc\bin\Debug\CustomControls.pdb
文件 490 2010-03-17 22:39 weibo\dnmsc\bin\Debug\dnmsc.vshost.exe.manifest
文件 225 2010-11-22 11:58 weibo\dnmsc\bin\Debug\DotNetMicroBlogClientForSina.vshost.exe.config
文件 490 2010-03-17 22:39 weibo\dnmsc\bin\Debug\DotNetMicroBlogClientForSina.vshost.exe.manifest
文件 74752 2011-01-11 19:07 weibo\dnmsc\bin\Debug\FerryMicroBlog.exe
文件 225 2010-11-22 11:58 weibo\dnmsc\bin\Debug\FerryMicroBlog.exe.config
文件 79360 2011-01-11 19:07 weibo\dnmsc\bin\Debug\FerryMicroBlog.pdb
文件 11608 2011-01-11 19:10 weibo\dnmsc\bin\Debug\FerryMicroBlog.vshost.exe
文件 225 2010-11-22 11:58 weibo\dnmsc\bin\Debug\FerryMicroBlog.vshost.exe.config
文件 516096 2006-08-18 11:50 weibo\dnmsc\bin\Debug\IrisSkin2.dll
文件 33729 2006-03-22 10:24 weibo\dnmsc\bin\Debug\Skin\calmness.gif
文件 20139 2006-03-22 10:16 weibo\dnmsc\bin\Debug\Skin\Calmness.ssk
............此处省略372个文件信息
- 上一篇:asp.net新闻发布系统
- 下一篇:C# 浏览器 功能完善 实现查看源文件 等等
相关资源
- 基于.NET+sqlserver的简易微博
- 仿新浪微博数据库+存储过程+asp.net 源
- asp.net实现的简单微博系统,vs2005+Sq
- asp.net在线微博系统
- C#ASP_NET仿新浪微博客V2
- 基于ASP.NET的微博系统
- 基于asp.net和MVC三层架构的小型微博网
- asp.net mvc 微博源码
- asp.net微博系统
- 仿新浪微博的网站源码232473
- 疫情相关NLP微博数据集
- 仿新浪微博的网站源码
- 疫情期间民众微博数据
- GeckoFX 火狐内核C#新浪微博Cookie读取
- 微博数据复杂网络用不了,主要转发
- ASP.NET下Sina跟QQ的登录接口调用源代码
- 抓取新浪微博好友动态(可参考读取
- OAuth2 通用组件(支持新浪微博、QQ、
- C#生成新浪微博短网址
- QQ在线客服源码
- 新浪微博OAuth第三方登录
评论
共有 条评论