日历控件中的Button控件的Click事件

编程入门 行业动态 更新时间:2024-10-03 19:24:47
本文介绍了日历控件中的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事件

本文发布于:2023-11-03 04:25:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1554227.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控件   日历   事件   Button   Click

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!