TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
kkattamanchi
NA
35
0
Please help me in Registry
Mar 10 2005 11:14 AM
hi, I want to prevent the user to open the CD ,so i write the following code: private void WriteValue(int Val ) { RegistryKey key =Registry.CurrentUser; try { RegistryKey valKey = key.OpenSubKey (@"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", true); if(valKey == null) { key.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"); } valKey.SetValue("NoCDBurning", Val); } catch(Exception er) { MessageBox.Show(er.Message, "My Appli", MessageBoxButtons.OK, MessageBoxIcon.Stop); } finally { _key.Close(); } } but also i can open the cd ,i don not know what is the error in my code??? Thanks
Reply
Answers (
1
)
Anonymous behaviour of DataGrid focus with the Tab key??Please Help
C# file upload utility with auto resume feature