I installed https://github.com/maslbl4/sublime-xaml
but when I open a Windows Phone Xaml file nothing is highlighted.
As you can see on their page, Sublime Xaml has a lot of missing files to be called a library for Windows Phone.
Going deeper in the contents of the files you can easily read xml header
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
Investigating a little will bring you to understand that this repository is for iOS only, I can't say if it works since i'm not an iOS developer.
But to answer your question:
No this library doesn't work in your Windows Phone Project neither in a Windows 8 Project or something .NET
Related
I'm trying to play audio files in Visual BASIC programs. It needs to add windows media player tool to play mp3 files. It adds two dll files with the application but I want to built a single executable file. I've already tried:
My.Computer.Audio.Play(path)
But it requires a .wav file which is very large in size. Is there any way to play mp3 files in a Visual BASIC program?
The .NET framework doesn not support MP3 files natively (so far). Therefore you will have to reply on a third-party framework to help. And unless you get access to the source code of this framework, you will have the incorporate it using (most likely) DLLs and won't be able generate a single .exe file.
If you are willing to switch to C++, some like this could help: http://www.codeproject.com/Articles/1191/A-very-simple-MP-Player
I created a program in vb.net in vb language. After that I created an installer (.msi) for the same in Advanced Installer program. I installed it on the computer and everything seems professional.
I copied the folder that contains the program and all its dependees and sent to to a different computer. I was surprised that the application (.exe) file works without installation!!
How can I make my application works only with installation?
Appreciate the help.
Advanced Installer has a licensing module that works for VB.NET apps too, which you can easily integrate into your installer.
However, this is in the Enterprise edition, and I assume you are using the free edition, as this sounds like quite a simple application/installer.
In this case you can try looking for an alternative OSS solution for a licensing/trial library.
Basically with this library every user that needs to use the software will need a key to activate it, so even if they copy the folder with the application files from Programs Folder, they will still not be able to run your app.
I have designed a calculator-like app using mahapps metro in VB. It works perfectly. I added both a .jpg and .png image to my Resources file, and add it within my xaml file, and it shows perfectly. Though when I press the "Start" button to test my program – it doesn't show the image in the app. I've read on here that if I change the build state to Resources, then it should appear. Though when I do that, I get some permission access error. Not sure where to go from here.
The original poster said:
I fixed it with uninstalling Visual Studio 2013, and installing it again. Likewise, in Resources folder -- I found my image, and set that build action to Resources, and it showed up on the debug/release build. I left the MainWindow.xaml to Page as a build action.
I am working with a vb.net Windows Forms application which has Application Settings, running under Windows XP.
The vs 2010 solution creates a MyApplication.exe.config but when I edit the file with notepad, the application ignores the changes even after reboot. Even if I delete the exe.config file the application still uses the settings from when it was compiled. So I decided to peek inside the exe file with a hex editor reveals the settings are encoded into the exe.
The user wide settings persist properly, but their default values are not coming from the exe.config but from elsewhere.
Is there something broken about my application or is this the way VB.Net Windows Forms Applications typically work?
Typically I develop console or service applications using C# where I can edit the exe.config without any problems.
The line in question:
If My.Settings.UseLocalOrGlobalSettingForOutputFolder.ToUpper.Equals("LOCAL") Then
The exe.config file looks pretty normal
<applicationSettings>
<DHModule.My.MySettings>
<setting name="UseLocalOrGlobalSettingForOutputFolder" serializeAs="String">
<value>Local</value>
</setting>
This is a visual studio 2010 solution with about 20 projects in it including a Setup Project. I have removed and rebuilt the project in question.
I have run out of time allowed for this project so.....
NOTE: I am going to work around this problem by not using any application-wide settings.
NOTE: I am going to work around this problem by not using any application-wide settings.
NOTE: I am going to work around this problem by not using any application-wide settings.
In app.config for the running executable look under <configuration> <configSections> <sectionGroup> and make sure the section exists: <section name="DHModule.My.MySettings"...
In VB.NET, my application is quite simple, and it accesses many images and creates a list with them.
The images are in my application's Resources folder.
The images are accessed in my code where I typed the path, in my PC, how to reach said folder.
Works like a charm, my project displays the images etc.
Now I go to Debug->Build.
Now I go to the bin folder, release folder, and find my application. I upload it.
I share the download to a friend.
My question is, will the images my application should show will appear? Considering the path I created in the code was manually written?
Are the images compiled into your project as "Embedded Resources" or placed in a .resx file? Is the code that you've written accessing them from your project's Resources folder? If so, then everything will work just fine when you copy the application to another computer and run it.
If you're hard-coding a path to your file system, then no; your application won't work on another computer because those files won't be distributed along with the bare executable. There's really no reason to ever do this.
It's difficult to tell from the information provided in your question what exactly you're doing. For more information about embedding resources into your application itself, so all you have to do is distribute the executable, see this simple how-to guide: Using Resources in Visual Studio .NET