• 大小: 4.91MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-27
  • 语言: C#
  • 标签: 微博  点赞  关注  评论  

资源简介

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个文件信息

评论

共有 条评论