It may work, but be unsupported as they are trying their best to kill XP off ASAP
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
My point is that a few weeks ago, this article did not have Windows Vista in the list of supported client Operating Systems. That was added with the latest Release Candidate.
I would like to see XP supported once they come out with the final product.
Please I would like to ask, is there any class provided in vb.net with which one can work with system hardware like the sound, webcam, and other system resources and also external devices being connected, easily. Please if there is I would like for someone to point it out to me.
Below is the code that is actually closing the whole application when clicked on Yes.
But,I want to close the current form and open the new form when the user clicks on X with red mark i.e. close on the form.The code I wrote is :
<pre lang="vb">Private Sub form1_FormClosing(ByVal sender AsObject, ByVal e As System.Windows.Forms.FormClosingEventArgs) HandlesMe.FormClosing
Dim response As MsgBoxResult
response = MsgBox("Do you want to close?", MsgBoxStyle.Question + MsgBoxStyle.YesNo, "confirm")
If response = MsgBoxResult.Yes ThenMe.Dispose()
ElseIf response = MsgBoxResult.No Then
e.Cancel = TrueEndIfEndIf</pre>
I am a in disbelief.
I was experimenting with strongly signed libraries lately and found a couple of surprising things.
I create a program and sign it using a strong name key file:
My first surprise was that if I edit the executable file with a binary editor I can make it display any other number.
It appears that the signatures are not checked at run-time.
I then pushed it a bit further.
I can push the original assembly to the GAC but not the modified version.
As it returns : "Failure adding assembly to the cache: Strong name signature could not be verified."
This is expected and I felt a bit better about it.
...Until I tried to copy the modified assembly directly into the assembly cache folders.
If you look at older publications such as this http://msdn.microsoft.com/en-us/magazine/cc163583.aspx[^] from 2006 you would come to the conclusion that strong naming signing an assembly would give some measure of tamper proofing. So it does come as a bit of a suprise to find that you can fire up a binary editor, change some data and it will still load.
It turns out that load time checks for applications operating in a Full Trust environment were disabled by default when .NET3.5 SP1 was released, a change that affected the behaviour of .NET2.0 as well. This Strong-Name Bypass feature can be enabled or disabled on a system wide basis via a registry setting or a per application basis with an entry in the app.config file.
It's explained in MSDN .NET4 docs[^] although I only found out about this after I had discovered that an edited strong named signed assembly would load without complaint. One would hope that the Authenticode signature mentioned in that reference is protecting the core system assemblies.
I'm just guessing here, but I think this isn't going to work because of the sandboxing of Metro apps. My understanding from talking with some MS guys at Build was that if it wasn't available through one of the share contracts, you were going to be able to do anything with another Metro App.
Hi guys, i'm trying to fetch details of images from a folder like their name and path and i want to save these details in an xml format. can anybody give me some sample code on how to write those details to xml? and then fetch those details on page_load? i just need the xml part.. im stuck. please help. Thanks in advance.
Hi pete,Thanks for the reply. I tried doing that but i'm getting an error. I forgot to mention that i'm trying to do this in a metro app. That is win 8 consumer preview with vs 2011 exp beta. Here is my code. Can u tell me what changes should i make?
//Get file names from folder
StringBuilder output = new StringBuilder();
StorageFolder folder = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFolderAsync("Big");
IReadOnlyList<StorageFile> file = await folder.GetFilesAsync();
string r= file.Count.ToString();
// int i=file.Count;foreach (StorageFile file1 in file)
this.one.Text = output.ToString();
XElement xml = new XElement("Images",
from file1 in file
new XElement("Filename", file1.Name),
new XElement("FileSize", file1.Size)
when i run this im getting an error in " xml.save("Data.xml");"
Error1 The best overloaded method match for'System.Xml.Linq.XDocument.Save(System.IO.Stream, System.Xml.Linq.SaveOptions)' has some invalid argumentsError2 Argument 1: cannot convert from 'string' to 'System.IO.Stream'
Thanks and regards,
Last Visit: 31-Dec-99 18:00 Last Update: 18-Mar-18 9:36