可以。
FORM1运行后置一变量为true,下次运行前检查此值,如为true,直接调用Form2.
FORM1运行后置一变量为true,下次运行前检查此值,如为true,直接调用Form2.
解决方案 »
- Menu菜单的引用
- 我想写一个彩票的统计程序,现在遇到一个读入文本中数据的问题
- 威海人居节焰火晚会!拍摄下来,让没有亲身到现场观看的朋友了却一份遗憾。
- 如何把data:array[0..9] of char中的数据写入到内存流中?急!!!
- can't perform this operation on an open database
- 請幫忙檢查存儲過程代碼問題?為何總是提示ERROR 156:Incorrect syntax near keyword 'end',
- “Translate Error,Value Out Of Bounds"是怎么回事?
- 局域网中我如何得到使用某一共享资源的机器名或其IP?
- 困惑:对同一类控件进行操作?
- 请问国内最出名的几个下载网站是?
- 我们到底选择什么?
- 请问谁有 ZipTV for Delphi5 的控件?
存取注册表使用TRegsitry、TRegsitryIniFile类。
存取Ini文件使用TIniFile类。
只有通过注册表吗?
the main file you can see the procedure of creating window
you can call the funtion tform.create to constuctruct the window
and before you create the second window you can delete the first window
var
reg : TRegistry;
i : Integer;
begin
// Call base class
RootKey := HKEY_CURRENT_USER;
KeyName := REG_SETTINGS;
Result := inherited LoadSettings;
// Create a TRegistry object
reg := TRegistry.Create;
// Set the RootKey
reg.RootKey := HKEY_CURRENT_USER;
// Open the key where settings are stored
reg.OpenKey(REG_SETTINGS, True);
// Add a button in the QuickBar for each value stored in the registry
i := 0;
while reg.ValueExists(IntToStr(i)) do begin
AddButton(reg.ReadString(IntToStr(i)));这里读取注册表里的键值,写用writestring(..); i := i + 1;
end;
// Close the key
reg.CloseKey;
// Free the TRegistry object
reg.Destroy;
end;