我觉得肯定是从注册表中取得的
以前没有研究过这个问题 正好现在有空 准备试试看看怎么用代码实现读写注册表信息
这方面如果有经验的大虾 请分享出你们的代码
或者是对这个问题有兴趣的筒子们 大家一起来研究
嘿嘿 很快就测试成功了
Imports Microsoft.Win32
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Reg As RegistryKey
Dim key As RegistryKey = Microsoft.Win32.Registry.CurrentUser
Dim subkey As String = "Software\Microsoft\Internet Explorer\Main"
Reg = key.OpenSubKey(subkey)
Dim sp As Object = Reg.GetValue("Start Page")
MessageBox.Show(sp.ToString)
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim Reg As RegistryKey
Dim key As RegistryKey = Microsoft.Win32.Registry.CurrentUser
Dim subkey As String = "Software\Microsoft\Internet Explorer\Main"
Reg = key.OpenSubKey(subkey, True)
Reg.SetValue("Start Page", "about:blank")
End Sub
点Button1给出当前IE的首页 点Button2把首页改成空白页
下面我准备试试怎么删除一个键值 比如 start page