Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
HZH_Controls
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 7a075b6d
由
kwwwvagaa
编写于
2020-05-07 22:59:33 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
DEMO简单修改
1 个父辈
83440906
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
38 行增加
和
3 行删除
HZH_Controls/Test/FrmMain.Designer.cs
HZH_Controls/Test/FrmMain.cs
HZH_Controls/Test/FrmMain.Designer.cs
查看文件 @
7a075b6
...
@@ -32,6 +32,9 @@
...
@@ -32,6 +32,9 @@
this
.
tvMenu
=
new
HZH_Controls
.
Controls
.
TreeViewEx
();
this
.
tvMenu
=
new
HZH_Controls
.
Controls
.
TreeViewEx
();
this
.
ucSplitLine_V1
=
new
HZH_Controls
.
Controls
.
UCSplitLine_V
();
this
.
ucSplitLine_V1
=
new
HZH_Controls
.
Controls
.
UCSplitLine_V
();
this
.
panControl
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
panControl
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
panel1
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
linkLabel1
=
new
System
.
Windows
.
Forms
.
LinkLabel
();
this
.
panel1
.
SuspendLayout
();
this
.
SuspendLayout
();
this
.
SuspendLayout
();
//
//
// tvMenu
// tvMenu
...
@@ -84,15 +87,37 @@
...
@@ -84,15 +87,37 @@
this
.
panControl
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
panControl
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
panControl
.
Location
=
new
System
.
Drawing
.
Point
(
209
,
61
);
this
.
panControl
.
Location
=
new
System
.
Drawing
.
Point
(
209
,
61
);
this
.
panControl
.
Name
=
"panControl"
;
this
.
panControl
.
Name
=
"panControl"
;
this
.
panControl
.
Size
=
new
System
.
Drawing
.
Size
(
815
,
707
);
this
.
panControl
.
Size
=
new
System
.
Drawing
.
Size
(
815
,
669
);
this
.
panControl
.
TabIndex
=
9
;
this
.
panControl
.
TabIndex
=
9
;
//
//
// panel1
//
this
.
panel1
.
Controls
.
Add
(
this
.
linkLabel1
);
this
.
panel1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Bottom
;
this
.
panel1
.
Location
=
new
System
.
Drawing
.
Point
(
209
,
730
);
this
.
panel1
.
Name
=
"panel1"
;
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
815
,
38
);
this
.
panel1
.
TabIndex
=
0
;
//
// linkLabel1
//
this
.
linkLabel1
.
Anchor
=
System
.
Windows
.
Forms
.
AnchorStyles
.
None
;
this
.
linkLabel1
.
AutoSize
=
true
;
this
.
linkLabel1
.
Location
=
new
System
.
Drawing
.
Point
(
252
,
11
);
this
.
linkLabel1
.
Name
=
"linkLabel1"
;
this
.
linkLabel1
.
Size
=
new
System
.
Drawing
.
Size
(
311
,
17
);
this
.
linkLabel1
.
TabIndex
=
0
;
this
.
linkLabel1
.
TabStop
=
true
;
this
.
linkLabel1
.
Text
=
"HZHControls控件库 官网 http://www.hzhcontrols.com"
;
this
.
linkLabel1
.
LinkClicked
+=
new
System
.
Windows
.
Forms
.
LinkLabelLinkClickedEventHandler
(
this
.
linkLabel1_LinkClicked
);
//
// FrmMain
// FrmMain
//
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
7F
,
17F
);
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
7F
,
17F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
1024
,
768
);
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
1024
,
768
);
this
.
Controls
.
Add
(
this
.
panControl
);
this
.
Controls
.
Add
(
this
.
panControl
);
this
.
Controls
.
Add
(
this
.
panel1
);
this
.
Controls
.
Add
(
this
.
ucSplitLine_V1
);
this
.
Controls
.
Add
(
this
.
ucSplitLine_V1
);
this
.
Controls
.
Add
(
this
.
tvMenu
);
this
.
Controls
.
Add
(
this
.
tvMenu
);
this
.
Icon
=
((
System
.
Drawing
.
Icon
)(
resources
.
GetObject
(
"$this.Icon"
)));
this
.
Icon
=
((
System
.
Drawing
.
Icon
)(
resources
.
GetObject
(
"$this.Icon"
)));
...
@@ -102,11 +127,14 @@
...
@@ -102,11 +127,14 @@
this
.
ShowIcon
=
true
;
this
.
ShowIcon
=
true
;
this
.
ShowInTaskbar
=
true
;
this
.
ShowInTaskbar
=
true
;
this
.
Text
=
"FrmMain"
;
this
.
Text
=
"FrmMain"
;
this
.
Title
=
"
控件
DEMO"
;
this
.
Title
=
"
HZHControls控件库
DEMO"
;
this
.
Load
+=
new
System
.
EventHandler
(
this
.
FrmMain_Load
);
this
.
Load
+=
new
System
.
EventHandler
(
this
.
FrmMain_Load
);
this
.
Controls
.
SetChildIndex
(
this
.
tvMenu
,
0
);
this
.
Controls
.
SetChildIndex
(
this
.
tvMenu
,
0
);
this
.
Controls
.
SetChildIndex
(
this
.
ucSplitLine_V1
,
0
);
this
.
Controls
.
SetChildIndex
(
this
.
ucSplitLine_V1
,
0
);
this
.
Controls
.
SetChildIndex
(
this
.
panel1
,
0
);
this
.
Controls
.
SetChildIndex
(
this
.
panControl
,
0
);
this
.
Controls
.
SetChildIndex
(
this
.
panControl
,
0
);
this
.
panel1
.
ResumeLayout
(
false
);
this
.
panel1
.
PerformLayout
();
this
.
ResumeLayout
(
false
);
this
.
ResumeLayout
(
false
);
}
}
...
@@ -116,5 +144,7 @@
...
@@ -116,5 +144,7 @@
private
HZH_Controls
.
Controls
.
TreeViewEx
tvMenu
;
private
HZH_Controls
.
Controls
.
TreeViewEx
tvMenu
;
private
HZH_Controls
.
Controls
.
UCSplitLine_V
ucSplitLine_V1
;
private
HZH_Controls
.
Controls
.
UCSplitLine_V
ucSplitLine_V1
;
private
System
.
Windows
.
Forms
.
Panel
panControl
;
private
System
.
Windows
.
Forms
.
Panel
panControl
;
private
System
.
Windows
.
Forms
.
Panel
panel1
;
private
System
.
Windows
.
Forms
.
LinkLabel
linkLabel1
;
}
}
}
}
\ No newline at end of file
\ No newline at end of file
HZH_Controls/Test/FrmMain.cs
查看文件 @
7a075b6
...
@@ -104,7 +104,7 @@ namespace Test
...
@@ -104,7 +104,7 @@ namespace Test
{
{
panControl
.
Controls
.
Clear
();
panControl
.
Controls
.
Clear
();
string
strName
=
e
.
Node
.
Text
.
Trim
();
string
strName
=
e
.
Node
.
Text
.
Trim
();
this
.
Title
=
"
控件
DEMO--"
+
strName
;
this
.
Title
=
"
HZHControls控件库
DEMO--"
+
strName
;
switch
(
strName
)
switch
(
strName
)
{
{
#
region
窗体
English
:
forms
#
region
窗体
English
:
forms
...
@@ -351,5 +351,10 @@ namespace Test
...
@@ -351,5 +351,10 @@ namespace Test
this
.
panControl
.
Controls
.
Add
(
c
);
this
.
panControl
.
Controls
.
Add
(
c
);
}
}
private
void
linkLabel1_LinkClicked
(
object
sender
,
LinkLabelLinkClickedEventArgs
e
)
{
System
.
Diagnostics
.
Process
.
Start
(
"http://www.hzhcontrols.com"
);
}
}
}
}
}
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论