moonboor 发表于 2009-11-30 20:45:32

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

如题一样。如何获取日期控件里的日期呢?
请指点一下。小弟在这里感谢各位。

zmj2008 发表于 2010-2-25 06:31:02

我也很想知道

netegg 发表于 2010-2-25 12:21:04

日期控件?dtp还是monthcal?

zmj2008 发表于 2010-3-1 19:17:07

去官方看看   是可以截获的我记得我看到过的

ddx13 发表于 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
不知道你说的是不是这个。
页: [1]
查看完整版本: 如何获取日期控件里的日期