I have a few .reg files that I would like to be able to call from my app. How can I call these .reg files from an OnClick event? Is there a better way that I can do this?

If you don't want to show any message (when you import a reg file from windows, it warns), you'll need to code it by yourself. Check this link http://www.codeproject.com/KB/vb/registry_with_vb.aspx, this one http://www.macoratti.net/vbn_reg.htm (it is in portuguese, use google translate) or even this one http://msdn.microsoft.com/en-us/library/aa289494%28v=vs.71%29.aspx.

But, if you don't care about it, you can try using

Process.Start("regedit.exe", "path to reg file")

A quick search on google may help even more.

Thanks.

If this got your question solved, simply mark this thread as solved. And I'm glad I could help (:

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.