資源簡介
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# 瀏覽器 功能完善 實現查看源文件 等等
評論
共有 條評論