I need to associate files with my application. I found this code:
Public Sub AssociateExtension(ByVal extension As String)
Try
Dim fileTypeName As String = extension.Substring(1, extension.Length - 1)
My.Computer.Registry.ClassesRoot.CreateSubKey(extension) _
.SetValue("", fileTypeName, Microsoft.Win32.RegistryValueKind.String)
My.Computer.Registry.ClassesRoot.CreateSubKey(fileTypeName & "\shell\open\command") _
i am new to visual basic and have recently made a quiz with 16 forms. I have built the project but when I attempt to email it (with hotmail) the person at the other end recieves it but then as he recieves it the following message is displayed "Cannot download the application. The application is missing required files. Contact application vendor for assistance."
I published an application and copied the Application Files Folder ,setup.exe and .application file to a network folder for others to install on their machines. What causes this message to appear. Should'nt the new version over write any previously installed version on a machine. Although in this case no other version has been installed. You cannot start application...from this location because it is installed from a different location
I designed an application with vb2010 and i would like it to run on a Windows XP platform without the trouble of installing the .NET framework 4.0 and the VBPowerpacks module. I tried copying the DLL files of what i needed and placing them in the application folder, but it didnt seem to work. Well i did my test on an old XP, SP2 platform.
i have some text files from which my app reads and process data, these text files are in hundreds and i am now providing them in a folder, but these should not be accessed by others, how i can do this?
VB.net 2008 build and publish.The application cannot publish as it cannot find the files. I down loaded the MS exe that installs it, but, I need to load them into the same folder as the install package.I looked at the folder: Microsoft SDKs/v6.0Aootstrapper/packages and transferred the folders but they do not contain the files.One of the errors on build is as follows <error> Error32The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35dotNetFX30NetFX30a_x86.msi' in item '.NET Framework 3.5' can not be located on disk. See Help for more information.WindowsApplication1.
Basically I want to create a little program with 5 or so text fields where I enter the specific names of movies. Upon pressing a "go" button it then does a google search(with certain criteria) for all textfield entries on the website [URL} and then download the files, if possible without opening a browser.
Search criteria: -only video formats(.avi .mov etc) -download url contains the "_de" tag (to insure german trailers)
That way it should hopefully find the right trailer and download it. If possible have it use progress bars.
How much work do you think this is? Or is it even possible? From a logical standpoint I don't think it's too much work... I am using Microsoft Visual Studio 2008 Express Edition. My project currently is just full of test code but I will post it anyway:
Code: Public Class Mainwindow Private Sub Mainwindow_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ifference between Japanese operating system and English operating system when launch an application that be created base on .NET 3.5 framework. Develop computer:
Operating system : Windows Vista, Japanese edition Developing environment :Visual Basic 2008
Run computer:
Operating system : Windows XP SP3, English edition
Both 2 computers are up to .NET 3.5 framework.The application ran well on Japanese edition OS computers but when I tried to launch on English edition OS computer, there was an error described : See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text ************** System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for system.xml.serialization/xmlSerializer: Exception has been thrown by the target of an invocation. --->
[code]....
I guess this error is result of not able to reading from XML file that includes Japanese words. These words are defined as string.
I need to make a windows application to upload files (jpg) that are on my computer to a web host. I have tried various codes I found on the web but none of them worked.Does anyone have a working code to do this? Maybe in VB.NET or C#.
My developer has lost access to the source code of a program that I have asked him to develop. However I have the folder containing files such as
[Code]...
How do I go about editing the application or the files, I want to add new functionality to the program but need to be able to view the code.. or even just help on what these files are about.. the developer has gone awol
I don't know what I may have clicked on but, in Solution Explorer under My Project, there are now duplicates of Application.Designer.vb under Application.myapp. One is named Application.Designer.vb and the other is named Application1.Designer.vb. If I comment out the code on one of them them build works without errors.
However, if I delete one of them, I get a warning "The custom tool Application.Designer.vb failed while processing the file 'My Project.Application.myapp." but it still builds. If I click on the warning, a messsage window appears with "The last attempt to run the custom tool 'My Project.Application.myapp' failed. Would you like to re-run the custom tool?" If I click NO, the program builds. If I click YES, it adds the duplicate Application1.Designer.vb again the the errors are back.how to eliminate the errors and the warning?
I'm trying to find a good strategy to access data files, image files, etc., that I want to distribute in my VB.NET deployment. The challenge I'm having is to find a place to put the files, and a means for the program to find them, regardless of whether the program is running in the Visual Studio environment as a debug build or release build, or running as an installed application.I've considered using AppDomain.CurrentDomain.BaseDirectory to find the location of the EXE file, then using relative paths to that folder. However, that approach depends on the directory hierarchy imposed by the Visual Studio tools when it separates the binaries of debug and release builds. Both builds would have to navigate upward to reach a common root folder, and the path traversal algorithm must work for the deployed EXE file too.
I want to make an application that moves all files from 1 zip to another and deletes a folder.
It is a Minecraft mod manager, so i wanna move all files from one zip containing the mod, to the minecraft.jar (which is a zip with another extension) overwriting all files. Also, it should delete the META-INF folder in minecraft.jar to prevent black-screening.
How can we open PDF, Word file, Excel file, Jpeg file, Tif files within a VB.Net Application? I tried process.start command unfortunately it opens another Adobe Reader window to open the file. I want all these files to open within a VB.Net application.
I currently have two applications. The main app and the updater app. When the main app checks his version with the webservice and it is out of date, it will download a zip archive and then start the updater. The updater will extract the zip archive overwriting the old files of the main app.
Is it possible to do this without the need of a 2nd app, in this case the updater? Can you like, store your application in the computers memory and overwrite the files?
Initially while login from form1, the application will check login from the database and after login, it again populate values from database to gridview in another form2, and after that i will add values to the database in another form3. And so when again coming to form2, the gridview does not populating the updated values from database. Actually where to place the database files in an application?
I am using Visual Basic 2008 Express Edition. This is what I want to do:
1) Copy all files and folders from A to B example: Copy From C:Source to \Server1Dest
2) I also am trying to use a progress bar to show the actual progress. Which hasn't worked. I can't time it because the number of files varies from day to day.
3) I would also like to pull variables from a text file or config file for example what the source path is and what the destination path is. I want this to be predetermined so the whole process is automated.
I am in the process of writing a win forms desktop app in VB.net that employs user data in the form of rich text, stored internally as an object and then serialised to an XML file for persistent storage purposes.
To create the user data (the application's "document" it might be called), I have written a seperate app that tries to be a word processor and then saves the text in my XML format that can then be opened and used in the main app.
Is there a way I can use Word to do this? Perhaps by writing an add-in or template? Just to clarify, the format of the rich text would just be a table, I then need to save this in my XML format, or save the text as my object then serialize it to file.
I have an application Bbb.exe. I found that there are two configurations.Bbb.exe.config and Bbb.vshost.exe.config. They are exactly same.For some reason, I changed Bbb.exe.config and keep Bbb.vshost.exe.config unchanged.
I'm trying to publish the application and install it on another PC. However, when I install the app, it doesn't include the .wav files; I have to add them into the folder myself once the app is installed. They are included in the solution window under bin/debug before I hit publish. Using My.Computer.Audio.Play(Application.StartupPath & "" & "Treyson.wav") to play the sound.
I am looking for some API or OCX or any other method to copy the existing file from Hard disk to the USB storage device.for that i would have to perform the following checks :
1> Check for the plugged in USB devices.
2> Find out for the available space(2GB) on each.
3> Prompting a message to user on which drive he would like to write that movie file.(As At a time i want to give only 1 disk write only.
4> after selecting the Drive, and pressing OK, i just want to copy the selected file from HDD to that Device.
Now For achieving this , i just need a reference of any Available API or OCX or any other method available in VB.net?
I am making a program that stores information for my applications. There are 4 main things I need in the XML file, the login information (User name and password), Application names and keys, and the owner of the application (who bought it). The program allows the user to enter as many applications and owners as they want and once login information is correct it loads the data. Then on exit all the data saves to a XML file.
My XML file looks like this <Data> <Login> <UserName> (UserName) </UserName> <Password> (Password </Password> </Login> <Applications> [Code] .....
i don want to build a deploy project but just a normal VB.NET Project and that project is kind of extracting files so how can i include files (compress) to project executable app then when i click "Extract" it will extract.last time, I use CHILKATZIP and ZIPForge.NET but it only compress another exe howabout its own project.Thanx,Code Quest