资源管理器的自动完成功能

Posted on 2019-01-28 23:32  努力成长静待花开  阅读(211)  评论(0编辑  收藏  举报

实现效果:

  

  

  

知识运用:

  AutoComplete子键下的Apend Completion键

实现代码:

        private void button1_Click(object sender, EventArgs e)
        {
            RegistryKey rk=Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Explorer\AutoComplete",true);
            rk.SetValue("Append Completion","yes",RegistryValueKind.String);
        }