使用 MsSql 数据库的 windows 窗体应用程序的日历控件 12.0 [英] Calendar Control 12.0 for windows forms application using MsSql database
问题描述
我在 Windows 窗体应用程序中有一个日历控件 12.0.我想在 MsSql 数据库的支持下显示每天分配的作业.我在asp.net 中找到了一些关于日历控件的代码.但同样的控件不适用于表单应用程序.
I have a Calendar Control 12.0 in Windows Forms Application. I want to show the jobs allocated for each days with the support of MsSql database. I found some coding about Calendar Control in asp.net. But that same control is not available for Form Application.
是否有任何事件函数可以用来显示每天的作业?
Is there any event functions I can use to display the jobs for each days?
推荐答案
为了将日历控件直接添加到 Windows 窗体是不可能的.但我所做的是:
In order to add a Calendar control directly to a windows forms is not possible. But what I did was:
- 使用 asp.net 网络应用程序创建了一个网页,并使用了 asp.net 应用程序工具箱中提供的日历控件.然后我链接了Sql数据库来显示日常事件.
- 发布网页并将文件保存在本地驱动器中.
- 然后使用 IIS 在本地托管该页面.
- 然后在 Windows 窗体中添加了一个 Web 浏览器控件.
- 然后将导航路径设置为本地主机地址.
大功告成.
有趣的部分是我在堆栈溢出中的第一个问题,我是提供答案的人.:):) 经过在互联网上的大量研究,我自己解决了问题.
The funny part is for my first question in stack overflow I'm the one providing the answer. :):) After lots of research in internet solved my problem on my own.
这篇关于使用 MsSql 数据库的 windows 窗体应用程序的日历控件 12.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!