查看: 380|回复: 3
|
有关Visual C# 的问题
[复制链接]
|
|
发表于 3-1-2019 02:20 PM
|
显示全部楼层
你需要做一个 Button On Click Function。然后call你的Calender Form
Eg.
CalenderForm frmC = new CalenderForm();
frmC.showDialog(); |
评分
-
查看全部评分
|
|
|
|
|
|
|

楼主 |
发表于 4-1-2019 05:54 PM
|
显示全部楼层
Mar5 发表于 3-1-2019 02:20 PM
你需要做一个 Button On Click Function。然后call你的Calender Form
Eg.
CalenderForm frmC = new CalenderForm();
frmC.showDialog();
好的, 谢谢你的 意见和教程 , 我试试看先, 看能不能link 起来 ~ 
|
|
|
|
|
|
|
|

楼主 |
发表于 5-1-2019 04:56 PM
|
显示全部楼层
如果写这个代码
{
Form1 f1 = (Form1)Application.OpenForms["Form1"];
Panel p = (Panel)f1.Controls["panel1"];
p.Visible = true;
}
要在那个位置加入
CalenderForm frmC = new CalenderForm();
frmC.showDialog();
这个的代码? |
|
|
|
|
|
|
| |
本周最热论坛帖子
|