找回密码
 加入
搜索
查看: 2033|回复: 4

如何获取日期控件里的日期

[复制链接]
发表于 2009-11-30 20:45:32 | 显示全部楼层 |阅读模式
如题一样。如何获取日期控件里的日期呢?
请指点一下。小弟在这里感谢各位。
发表于 2010-2-25 06:31:02 | 显示全部楼层
我也很想知道
发表于 2010-2-25 12:21:04 | 显示全部楼层
日期控件?dtp还是monthcal?
发表于 2010-3-1 19:17:07 | 显示全部楼层
去官方看看   是可以截获的  我记得我看到过的
发表于 2010-3-1 20:22:38 | 显示全部楼层
#include <ButtonConstants.au3>
#include <DateTimeConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 265, 113, 192, 124)
$Date1 = GUICtrlCreateDate("", 24, 16, 186, 21)
$Button1 = GUICtrlCreateButton("Button1", 80, 64, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit
                Case $Button1
                        msgbox(0,"",GUICtrlRead ( $Date1 ))
        EndSwitch
WEnd
不知道你说的是不是这个。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-22 11:28 , Processed in 0.083454 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表