form1.top+command1.top
form1.left+command1.left
form1.left+command1.left
解决方案 »
- VB中有没有这样的函数,2007/1/5 转化成 2007/01/05,也就是说月份和日期都变成两位?
- 咄咄怪事,Text.text不刷新! 在线等
- 各位,有做过网络计费软件的请进!
- 当对窗体进行放大或缩小时,窗体中的控件也一起放大缩小,有没有这样的API函数???
- 我用VB连接数据库老是说是不能识别是怎么回事?低版本的就没问题!请各位指教!!!
- 在VB中如何建立一个模式窗口?
- 怎样判断一个文件是否存在?怎样彻底删除一个文件?
- 关于往数据库插入记录的问题?
- 求救!关于窗体大小调整!???
- 请教如何在数据库中存取图片?
- *********Fraser01(王晓栋),提请大家注意,关于取数的问题****************
- 寻求文件: dbgrdchs.dll ; mscmcchs.dll
キ hWnd
Identifies the window whose client area is used for the conversion.キ lpPoint
Points to a POINT structure that contains the client coordinates to be converted. The new screen coordinates are copied into this structure if the function succeeds.
对于无HWND的我就不知道了。Option Explicit
Private Type RECT
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type
Private Declare Function GetWindowRect Lib "user32" (ByVal hwnd As Long, lpRect As RECT) As LongPrivate Sub Command1_Click()
Dim a As RECT
Call GetWindowRect(Text1.hwnd, a)
MsgBox a.Left & "," & a.Top
End Sub
我有一个窗体,上面有一个按钮,如何让窗体隐藏,按钮还显示呢?
http://www.csdn.net/expert/topic/372/372380.shtm