• 大小: 1.37MB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2023-10-01
  • 语言: C#
  • 标签:

资源简介

Winform模仿QQ登录界面,没有采用任何第三方控件 同QQ界面一模一样

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CCWin;
using CCWin.SkinControl;
using CCWin.SkinClass;
using System.Runtime.InteropServices;
using System.Threading;
using System.Net.Mail;

namespace QQ2013
{
    public partial class FrmLogin : CCSkinMain
    {
        public FrmLogin()
        {
            InitializeComponent();
        }

        //窗口加载时
        private void FrmLogin_Load(object sender EventArgs e)
        {
            int Hour = Convert.ToInt32(DateTime.Now.ToString(“HH“));
            //早上
            if (Hour > 5 && Hour <= 11)
            {
                this.Back = Properties.Resources.morning;
            }
            else if (Hour > 11 && Hour <= 14)//中午
            {
                this.Back = Properties.Resources.noon;
            }
            else if (Hour > 14 && Hour <= 19)//下午
            {
                this.Back = Properties.Resources.afternoon;
            }
            else//晚上
            {
                this.Back = Properties.Resources.night;
            }
        }

        //状态菜单中的Item选择事件
        void item_Click(object sender EventArgs e)
        {
            ToolStripMenuItem item = (ToolStripMenuItem)sender;
            txtId.Text = item.Tag.ToString();
            pnlImgTx.BackgroundImage = item.Image;
        }

        //悬浮时
        private void Control_MouseEnter(object sender EventArgs e)
        {
            Control txt = (Control)sender;
            SkinPanel pnl = (SkinPanel)txt.Parent;
            pnl.ControlState = ControlState.Hover;
        }

        //离开时
        private void Control_MouseLeave(object sender EventArgs e)
        {
            Control txt = (Control)sender;
            SkinPanel pnl = (SkinPanel)txt.Parent;
            pnl.ControlState = ControlState.Normal;
        }

        //托盘图标双击显示
        private void tuopan_DoubleClick(object sender EventArgs e)
        {
            this.Show();
        }

        //登录事件
        private void btnDl_Click(object sender EventArgs e)
        {
            if (txtId.Text.Length == 0 || txtPwd.Text.Length == 0) { return; }
            btnDl.Enabled = btnDuoId.Enabled = btnSandeng.Enabled = false;
            imgLoadding.Visible = true;
            timShow.Start();
        }

        //账号下拉框按钮事件
        private void btnId_Click(object sender EventArgs e)
        {
        }

        //软键盘
        private void txtPwd_Iconclick(object sender EventArgs e)
        {
            PassKey pass = new PassKey(this.Left + txtPwd.Left - 25 this.Top + txtPwd.Bottom txtPwd);
            pass.Show();
        }

        //自动登录
        private void chkZdLogin_CheckedChanged(object sender EventArgs e)
        {
            chkMima.Checked = chkZdLogin.Checked ? true : chkMima.Checked;
        }

        //记住密码

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        117  2013-04-24 00:05  QQ2013\QQ2013\app.config

     文件     388096  2015-03-04 20:15  QQ2013\QQ2013\bin\Debug\QQ2013.exe

     文件        117  2013-04-24 00:05  QQ2013\QQ2013\bin\Debug\QQ2013.exe.config

     文件      71168  2015-03-04 20:15  QQ2013\QQ2013\bin\Debug\QQ2013.pdb

     文件      11608  2015-03-04 20:18  QQ2013\QQ2013\bin\Debug\QQ2013.vshost.exe

     文件        117  2013-04-24 00:05  QQ2013\QQ2013\bin\Debug\QQ2013.vshost.exe.config

     文件        490  2012-06-06 02:06  QQ2013\QQ2013\bin\Debug\QQ2013.vshost.exe.manifest

     文件     607232  2013-04-26 16:25  QQ2013\QQ2013\bin\Debug\SkinForm.dll

     文件    1101312  2013-04-24 01:10  QQ2013\QQ2013\bin\Debug\SkinForm.pdb

     文件       3792  2015-03-04 20:15  QQ2013\QQ2013\FrmLogin.cs

     文件      26100  2015-03-04 20:15  QQ2013\QQ2013\FrmLogin.designer.cs

     文件      74545  2015-03-04 20:15  QQ2013\QQ2013\FrmLogin.resx

     文件        789  2015-03-04 19:55  QQ2013\QQ2013\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件      10403  2015-03-04 20:15  QQ2013\QQ2013\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       1106  2015-03-04 20:18  QQ2013\QQ2013\obj\x86\Debug\QQ2013.csproj.FileListAbsolute.txt

     文件       5759  2015-03-04 20:15  QQ2013\QQ2013\obj\x86\Debug\QQ2013.csproj.GenerateResource.Cache

     文件     388096  2015-03-04 20:15  QQ2013\QQ2013\obj\x86\Debug\QQ2013.exe

     文件      46183  2015-03-04 20:15  QQ2013\QQ2013\obj\x86\Debug\QQ2013.FrmLogin.resources

     文件      71168  2015-03-04 20:15  QQ2013\QQ2013\obj\x86\Debug\QQ2013.pdb

     文件     309129  2015-03-04 20:02  QQ2013\QQ2013\obj\x86\Debug\QQ2013.Properties.Resources.resources

     文件       7533  2013-04-26 16:04  QQ2013\QQ2013\obj\x86\Debug\ResolveAssemblyReference.cache

     文件      18432  2015-03-04 20:02  QQ2013\QQ2013\obj\x86\Debug\TempPE\Properties.Resources.Designer.cs.dll

     文件        470  2013-04-24 00:20  QQ2013\QQ2013\Program.cs

     文件       1344  2013-04-24 00:01  QQ2013\QQ2013\Properties\AssemblyInfo.cs

     文件      41228  2015-03-04 20:02  QQ2013\QQ2013\Properties\Resources.Designer.cs

     文件      31536  2015-03-04 20:02  QQ2013\QQ2013\Properties\Resources.resx

     文件       1104  2013-04-24 00:05  QQ2013\QQ2013\Properties\Settings.Designer.cs

     文件        249  2013-04-24 00:01  QQ2013\QQ2013\Properties\Settings.settings

     文件      12290  2015-03-04 20:02  QQ2013\QQ2013\QQ2013.csproj

     文件       7097  2013-04-24 00:21  QQ2013\QQ2013\Resources\1_100.gif

............此处省略113个文件信息

评论

共有 条评论

相关资源