将约会详细信息保存到表单 [英] saving appointment details to a form

查看:57
本文介绍了将约会详细信息保存到表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有日历的表格,因此您可以在时间旁边选择日期和标签.当您选择日期时,它会出现在单独的标签中,然后当您单击时间时,它将打开Form2来记录约会的其他详细信息.它也会在时间标签上为背景色,因此您知道已经预约了该时间.但是我不知道如何保存此信息,因此每当我关闭Form2时,约会都不会被忘记.当我从头开始再次打开它时,约会的时间标签仍应涂上颜色,如果我单击其中之一,则约会的详细信息应该可见.

关于我需要做什么的任何想法

谢谢Tiarnan

I have a form that has a calendar so you can choose the date and labels along the side for the time. When you choose the date it appears in a seperate label and then when you click a time it opens up Form2 to record extra details of the appointment. It also colours in the time labels back colour so you know an appointment has been made for that time. However i cannot work out how to save this information so that whenever i close Form2 the appointment is not forgotten. When i open it again from the start the time labels for the date that i made the appointment on should still be coloured in and if i click on one of them the details of the appointment should be visible.

Any ideas on what i need to do

Thanks Tiarnan

推荐答案

听起来像您需要查看持久性存储-在这种情况下,我建议数据库将是合适的存储介质.
哪一个取决于您,您的环境如何.如果打算将其用作独立的单用户应用程序,请查看SqLite或SqlCE-两者都可以很好地工作并且占用空间小.

您既可以使用文本文件,也可以使用XML格式,但是您必须自己处理它们-数据库可能是一个更好的解决方案.
Sounds like you need to look at persistent storage - in this case I would suggest a database would be a suitable storage medium.
Which one will depend on you, and what your environment is like. If this is intended as a stand-alone, single user application, then look at SqLite or SqlCE - either will work pretty well and be small footprint.

You could do it yourself with either a text file, or in XML, but then you would have to process them yourself - a DB is probably a better solution.


这篇关于将约会详细信息保存到表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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