|
That was fast.
I already tried that. Se my other reply.
|
|
|
|
|
id just remove vista hehe
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.passion != Programming)
|
|
|
|
|
By the way, I did also try another way:
RegistryKey key = Registry.ClassesRoot.OpenSubKey("CLSID", true);
key.DeleteSubKeyTree("{FD6905CE-952F-41F1-9A6F-135D9C6622CC}");
but it tells me that the subkey does not exist.
I tried to print out all the subkeys:
foreach (string str in key.GetSubKeyNames())
{
Console.WriteLine(str);
}
Every key comes out.. so i'm in the right place, but the key I need does not show.
|
|
|
|
|
If the key does not exist, then you've done it, right ?
I have no idea if what you're trying to do work. But, the code is right.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I think it's because Vista can do magic.
At least it seems so.
----
C:\Users\Mads\Desktop>Rege.exe
Disable security notifications
C:\Users\Mads\Desktop>Rege.exe
Disable security notifications
Unhandled Exception: System.ArgumentException: Cannot delete a subkey tree because the subkey does not exist.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at Microsoft.Win32.RegistryKey.DeleteSubKeyTree(String subkey)
at Rege.Program.DisableSecurityNotifications()
at Rege.Program.Main(String[] args)
----
So it does get deleted. But then i fire up regedit and see for my self. And there it is.
I can even edit it's values and create new subkeys in it.
I tried restarting, and the subkey is still there in regedit.
|
|
|
|
|
I found someting.
When i delete the key:
HKEY_CLASSES_ROOT\CLSID\{FD6905CE-952F-41F1-9A6F-135D9C6622CC}
it deletes the key:
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{FD6905CE-952F-41F1-9A6F-135D9C6622CC}
I'm running 64bit Vista. I guess they made it that way, so that Vista 64bit would be more backwards compatable.
|
|
|
|
|
Oh - I think if you try to access the registry without permission, it creates a copy you can play with. I reckon that's happening to you. Vista is a pile of crap
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian Graus wrote: Vista is a pile of crap
Agreed!!!
-= Reelix =-
|
|
|
|
|
How insightful.
Please go tell someone else about your feelings for Vista.
|
|
|
|
|
No, It is in fact a part of the registry that enables 32bit backwards compatebility.
I compilled my application for 64bit instead of 32bit, and it deletes the correct subkey now.
|
|
|
|
|
DirectoryEntry d1 = new DirectoryEntry("LDAP://" + "192.168.1.16", currentuser, "pankaj");
second parameter is the operating system user , i mean the user name that appear while booting.
and the third parameter is the password , which i fill during proving the authentication.
after writing the d1 in the watch window , the properties get the null memory .Please sort out the problem.
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Try this
DirectoryEntry d1 = new DirectoryEntry(LDAPPath, username, password, AuthenticationTypes.Secure | AuthenticationTypes.Sealing);
|
|
|
|
|
still same problem
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
hello can someone tell me whats wrong with my codes..
if (DialogResult.Yes == MessageBox.Show("Exit?","Message",MessageBoxButtons.YesNo,MessageboxIcon.Question))
{
Close();
}
if i put it in a button it works fine..
But if i put it in formClose or formClosing Event when i clicked the yes button the messagebox just stay in the center of the form and it wont close but if i click no the form exits.
ginji
|
|
|
|
|
this may help
if (DialogResult.Yes != MessageBox.Show("Exit?","Message",MessageBoxButtons.YesNo,MessageboxIcon.Question))
{
e.Cancel = true;
}
|
|
|
|
|
there was no
e.Cancel = true
when i press e. the only available is Closereason,Equals,Gethashcode,Gettype and ToString
|
|
|
|
|
You can only cancel the formClosing event. The FormClose event means there's no stopping it. I guess you're handling the latter.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
When Form_Closed occurred the Form is Closed you may want try in Form_Closing
|
|
|
|
|
Gave you a 5. The trouble with the 'helpful answer/unhelpful answer' button, is morons who can't work out when they've been told a good answer.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
What are differences between c++ and c#?
fgff
|
|
|
|
|
|
Pretty much everything except some superficial syntax.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
Would anyone know or have a link on how to download a webpage that is processed via Javascript?
Downloading simple HTML is easy, but as Ajax becomes more the norm and components are downloaded separatly, is there anyway I could do this?
Take this page for example, looking at the source, theres no content even though it appears in your browser.
http://forums.msdn.microsoft.com/en-US/regexp/threads/[^]
This may be a dead end....any help would be appreciated
|
|
|
|
|
Well, you can get access to any source that's in the main page, or find links to download js files. In fact, client side processing is more accessible than server side ( which is not accessible at all ). But, without the server side, you can't ever download a site and use it offline.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I understand what your saying but if your web browser is able to download a webpage and process the javascript, why shouldn't it be possible?
All I want to do is get the final version of the rendered page.
|
|
|
|