如何编写代码以创建动态日历表单 [英] How to code to create dynamic Calendar form

查看:107
本文介绍了如何编写代码以创建动态日历表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Visual Studio 2008和数据库SQL 2005中开发Windows应用程序.
在该应用程序中,我想创建日历表单,该表单将提供月,年和日历的详细信息...请告诉我如何编码以c#格式创建日历表单.

在此先感谢.....

I am developing windows application in visual studio 2008 and database SQL 2005.
In that application i want to create calendar form which will give detail of month and year and calendar ...please any tell how to code to create the calendar form in c#.

Thanks in advance.....

推荐答案

如果只有某种方法可以浏览互联网上的所有信息页面,并将其过滤为您所需要的信息在寻找...

那是什么,乌黑?有?它叫做搜索引擎"吗?您所要做的就是去一个名为"Google"的网站并输入搜索文字?它会为您找到所有保留地址的站点吗?太不可思议了!

试试吧:Google ..."C#中的日历表单" ...搜索.


真是悲哀!负载和负载!让我们来看看头一个吧,乌黑吗? http://www.java2s.com/Code/CSharp/GUI-Windows-Form/CalendarControl.htm [ ^ ]

嘿!有用!
If only there was some way to look through all the pages of information on the internet, and filter it to just what you were looking for...

What''s that, Sooty? There is? It''s called a "Search Engine"? And all you have to do is go to a site called "Google" and type in your search text? And it finds all the relevanbt sites for your? That''s incredible!

Let''s try it: Google... "calendar form in c#"...Search.


Good grief! Loads and loads! Let''s look at the top one, eh Sooty? http://www.java2s.com/Code/CSharp/GUI-Windows-Form/CalendarControl.htm[^]

Hey! It works! That is exactly what the question is looking for!


如果您使用的是Visual Studio 2008,则可以从ToolBox中选择压延机,这是您要传输的代码.通过文本框进行编码,即可轻松执行.
TextBox1.Text =日历1.SelectedDate.ToShortDateTime();
之后,您可以将此文本框的线索发送到服务器.
有关此链接的更多详细信息,
http://msdn.microsoft.com/en-us/library/aa288428%28v = vs.71%29.aspx [ ^ ]
If You are Using Visual studio 2008, then from ToolBox yo can choose calender from there on Your page,this is the coding if you to transfer this coding by textbox, then you can perform, easily.
TextBox1.Text=Calendar1.SelectedDate.ToShortDateTime();
after this you can send the velue of this textbox to server.
and For More detail follw this link,
http://msdn.microsoft.com/en-us/library/aa288428%28v=vs.71%29.aspx[^]


这篇关于如何编写代码以创建动态日历表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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