資源簡介
C#界面設(shè)計是一件比較麻煩的事情,本例子通過模仿暴風影音的界面,向大家介紹c# GUI皮膚的制作方法
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
using?System.Drawing.Drawing2D;
using?Skin.Properties;
using?System.Runtime.InteropServices;
namespace?Skin
{
????public?partial?class?Main?:?Form
????{
????????public?Main()
????????{
????????????InitializeComponent();
????????????this.Setstyle(Controlstyles.ResizeRedraw?true);
????????}
????????#region?初始化變量
????????protected?int?formMinX?=?0;//最小化按鈕的X坐標
????????protected?int?formMaxX?=?0;//最大化按鈕的X坐標
????????protected?int?formCloseX?=?0;//關(guān)閉按鈕的X坐標
????????protected?int?formtitleMarginLeft?=?0;//標題欄的左邊界
????????protected?int?formtitleMarginRight?=?0;//標題欄的右邊界
????????Image?imgTopLeft?=?(Image)Reso
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????901??2010-01-11?20:25??Skin.sln
?????文件?????282624??2010-01-22?01:49??Skin\bin\Debug\Skin.exe
?????文件??????30208??2010-01-22?01:49??Skin\bin\Debug\Skin.pdb
?????文件???????5632??2005-12-08?14:51??Skin\bin\Debug\Skin.vshost.exe
?????文件???????8534??2010-01-22?01:49??Skin\Main.cs
?????文件???????2157??2010-01-22?01:49??Skin\Main.Designer.cs
?????文件???????5814??2010-01-22?00:28??Skin\Main.resx
?????文件???????1548??2010-01-22?00:28??Skin\obj\Debug\Skin.csproj.GenerateResource.Cache
?????文件?????282624??2010-01-22?01:49??Skin\obj\Debug\Skin.exe
?????文件????????180??2010-01-22?00:28??Skin\obj\Debug\Skin.Main.resources
?????文件??????30208??2010-01-22?01:49??Skin\obj\Debug\Skin.pdb
?????文件?????256618??2010-01-21?23:59??Skin\obj\Debug\Skin.Properties.Resources.resources
?????文件???????6656??2010-01-21?23:59??Skin\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
?????文件????????814??2010-01-22?02:03??Skin\obj\Skin.csproj.FileListAbsolute.txt
?????文件????????462??2010-01-21?22:44??Skin\Program.cs
?????文件???????1174??2010-01-11?20:25??Skin\Properties\AssemblyInfo.cs
?????文件???????6524??2010-01-21?23:59??Skin\Properties\Resources.Designer.cs
?????文件???????9523??2010-01-21?23:59??Skin\Properties\Resources.resx
?????文件???????1089??2010-01-11?20:25??Skin\Properties\Settings.Designer.cs
?????文件????????249??2010-01-11?20:25??Skin\Properties\Settings.settings
?????文件???????7398??2010-01-21?22:21??Skin\Resources\bottomLeft.bmp
?????文件??????12294??2010-01-21?22:22??Skin\Resources\bottomLeftstretch.bmp
?????文件???????7398??2010-01-21?22:21??Skin\Resources\bottomRight.bmp
?????文件??????12294??2010-01-21?22:21??Skin\Resources\bottomRightstretch.bmp
?????文件??????71046??2010-01-21?22:23??Skin\Resources\bottomstretch.bmp
?????文件???????7062??2010-01-21?22:36??Skin\Resources\LeftDrag_Mid.bmp
?????文件???????7062??2010-01-21?22:36??Skin\Resources\RightDrag_Mid.bmp
?????文件???????2430??2010-01-21?22:55??Skin\Resources\skin_btn_close.bmp
?????文件???????1422??2010-01-21?23:07??Skin\Resources\skin_btn_max.bmp
?????文件???????1422??2010-01-21?23:07??Skin\Resources\skin_btn_min.bmp
............此處省略17個文件信息
評論
共有 條評論