It uses AdornerDecorator & Thumb class for component moving and resizing, so
is it available in WinRT ?
No. Adorners were a WPF capability, and didn't exist in Silverlight - which WinRT is much closer to than WPF. In hunting around for an answer, I see that you have already asked and had answers to this here[^]. Asking the same question in a different location isn't going to change the underlying answer I'm afraid.
*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington
I am wondering..
Is it possible to take advantage of the new C++ syntax, new COM generation, new C++ .NET interop functionality without using WinRT?
I.e. I'd like to write a normal WPF desktop application.
I would like to write some part of it in C++.
I'd like to bypass the previous (and slow & clumsy) interop technology and, if possible, use the new interop one, which will make supereasy and efficient to share my code between C++ / C# without reverting to C++ CLI.
I.e. do I neeed to use C++ CLI / Managed C++, or could I use this new C++ extension with .NET 4.5 WPF desktop app?
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
My programs never have bugs, they just develop random features.
I was surprised to see that with the Visual Studio 2012 RC release they have added Windows Vista support for .NET Framework 4.5.
Has anyone seen any indication that they plan to add Windows XP support in the future?
I do not mean if Microsoft will continue to support the Operating System. My question is whether or not it will be possible to install and use .NET framework 4.5 on Windows XP. Currently it is not listed as being supported.
The fact is that .Net 4.5 is not officially released. Therefore why would they spend their time on getting it integrated with a OS that is going out the door, prior to its release. That will be the last thing they do, if they even do it.
My point of it being supported is that in all likelyhood after 4.5 is officially released it will be released for all actively supported OSes. But that is just my thoughts. MS has not made any official statement to this AFAIK.
Computers have been intelligent for a long time now. It just so happens that the program writers are about as effective as a room full of monkeys trying to crank out a copy of Hamlet.
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
select new XElement("Image",
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 arguments
Error2 Argument 1: cannot convert from 'string' to 'System.IO.Stream'
You can do following:
1. Create a class with all the properties which you want to save in an XML file.
2. Fetch the details of images from a folder and store it in an object of this newly created class.
3. And then with few lines of code, you can convert this object into XML
At my company we are using excel to register our working hours. I created a very intelligent xls file but because some people use open office i had to remove a lot of it. Now that means that the HR person needs to do a lot of work entering the data from the basic excel sheet to my intelligent work sheet so the calculations are done for her.
For the moment i am trying to create an Excel Add-in using vb.net to do this.
The purpose of the add-in is to import the data from the basic to the intelligent sheet. but i seem to have run in to a problem:
How can i write data into the current XLS file. normally you open the file using code but because it is an excel add-in the file is already open in excel. So how can i use the current open file
Hello all .Net Addicts, seekers, masters and developers
first of all i want to avail the chance to say that i'm very glad now i'm in the .Net world and now that i'm capable to develop under Visual Studio, and as a student, software developing and programming is the best field out there. and now that i'm continuing my engineering studies i need to implement an application for my final project assignment..
and for that purpose i'm looking to create a WPF/WCF chat application that allows the following functionalities :
- communication via lan
- chatting via text, video(webcam) and audio
- exchange files
- save conversation logs
i'm seeking your help to achieve the implementation of this application, so please if there is any samples that i can follow i'll be glad to hear you.
ps: i've already implemented the chat application in this article. WCF / WPF Chat Application[^]
any help would be more than appreciated !!