日历控件中的Button控件的Click事件 [英] Click event of Button control in Calender control

查看:90
本文介绍了日历控件中的Button控件的Click事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,

我正在开发一个在日历控件中添加假期列表的应用程序,可以在日历中添加假期,但我的要求是在日历中显示按钮控件而不是假期名称.现在,当我单击按钮时,它应该显示假期名称的详细信息.

我要在每个单元格中添加假期名称,周年纪念日,生日等.如果所有事件都在同一天发生,那么日历的大小就会变大,也就是说,如果我在日历的一个单元格中显示所有这些事件控制.这使细胞尺寸出现问题.因此,对于此问题,我想在日历控件中添加一个按钮控件,然后单击该按钮之后,我想在消息框中显示所有事件或弹出.

Hi friends,

I am developing an application of adding holiday list in the calender control, i am able to add holidays in the calender but my requirements are to display a button control in the calender instead of name of the holiday. Now when I click on the button it should display the holiday name in details.

I am going to add in each cell holiday names, anniversaries,birthdays etc. if all the events come on the same day, then the size of the calender is becoming large, that is If i display all these events in one cell of the calender control. it is making cell size problem. So for this problem i want to add a button control in the calender control and then after clicking on the button, i want to display all the events in message boxor pop up.

推荐答案

您必须使用按钮创建一个自定义控件.
you have to create a custom control with the button.


这篇关于日历控件中的Button控件的Click事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆