图形日历问题 [英] Graphic CAlendar Question

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

问题描述

您好,我有一个问题,我该如何使用C#在ASP:NET中对该日历进行编程
这是日历的图像



我想用日历来做,不,我要使用个性化控件来控制它:label和texbox.

现在我想要的是将所有这些作为一个真实的日历来工作,我可以用texbox绘制任何框形中的show事件!!!

ty

Hi there y got a question how can i programm this calendar in ASP:NET of course with C#
it is the image of the calendar



i dind use a calendar to do it, no i ahve tro dra it using personaliza control: label and texbox.

now what i want is that all this work as a real calendar, the show event in any box tath i draw with a texbox!!!

ty

推荐答案

从自定义控件开始.
弄清您想对控件执行的操作,然后指定需要呈现给外界的每个属性,方法和事件.
然后确定需要实现哪些内容以支持内部结构:数据库或其他存储,等等.
处理Paint事件以显示日期,然后从那里计算出最终的控件.

听起来有点模糊?是的.它是.您需要指定工作-至少自己指定-这样您就可以知道需要实现的目标.然后,您可以开始研究您不了解的知识,并研究如何做到这一点.
Start with a custom control.
Work out what you want to be able to do with your control, then specify each property, method and event that you will need to present to the outside world.
Then work out what you need to implement to support the internals: database or other storage, and so forth.
Handle the Paint event to show the days, and then work out from there to build the final control.

Sounds a bit vague? Yes. It is. You need to specify the job - for yourself at least - so thay you get an idea what you need to achieve. you can then start working out what you don''t know enough about, and researching how to do it.


这篇关于图形日历问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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