# Re: try it...

Posted by Fred Tsai on March 18, 1999 at 21:35:16:

In Reply to: try it... posted by wei on March 18, 1999 at 03:23:47:

: 'Put these lines in global module
: Option Explicit
: 'For access help file
: Declare Function WinHelp Lib "user32" Alias "WinHelpA" (ByVal hWnd As Long, ByVal lpHelpFile As String, ByVal wCommand As Long, ByVal dwData As Long) As Long
: Public Const HELP_TAB = &HF
: Public Const cdlHelpContext = 1

: 'In your form module
:
: Dim x

: 'View help context
: x = WinHelp(hWnd,"Sample.hlp",cdlHelpContext,100)

: 'View find
: x = WinHelp(hWnd, "Sample.hlp", HELP_TAB, -1)

: 'View Index
: x = WinHelp(hWnd, "Sample.hlp", HELP_TAB, -2)
谢谢你的说明
可不可以在请教一下
我去参考别人的写法，他用SendKeys "{F1}"
即可以叫出说明档
我如法炮制可是为什么我的说明档是Show出在原先的视窗下面？？

Follow Ups:

- Set Window position... wei 03:51:36 3/19/99 (0)