# 这样不行喔!

Posted by 小吴 on December 16, 1997 at 16:46:00:

In Reply to: 可否请小吴指导一下 registry 用法(我试不出来) posted by jason on December 15, 1997 at 16:55:54:

读取设定值:
在 Form_Load 中写入下列程式
Left = GetSetting("MyProg", "MyForm", "Left", 0)
Top = GetSetting("MyProg", "MyForm", "Top", 0)
Width = GetSetting("MyProg", "MyForm", "Width", 6000)
Height = GetSetting("MyProg", "MyForm", "Height", 4000)

存入设定值:
在 Form_QueryUnload 中:
WindowState = vbNormal

在 Form_Unload 中
SaveSetting "MyProg", "MyForm", "Left", Left
以下会写吧....打字很累...

Follow Ups:

- Re: 谢谢!我知道错在哪里了.可是.... jason 21:44:05 12/16/97 (1)
  - VB 的程式不要用 End 小吴 06:53:28 12/17/97 (0)