VS 2010 Downloading New Version While Keeping Old Settings?

Aug 9, 2011

Let's say I'm trying to have a program that will check for a version.txt file online, and enable the user to download a new version of my .exe.Here is an example of how i get the new version. I apologize for the old syntax, but i just got out of VB6 and am still learning FileStream, etc. Inetconnection is just a function similar to Webclient.DownloadData.

DABytes = InetConnection(Pathy)
Targetfolder = Application.StartupPath & "DA.exe"
foldera = FreeFile()

[code].....

View 1 Replies


ADVERTISEMENT

Is There Version Of .NET Framework 3.5 That Does Not Require Downloading during User's Setup Procedure?

Mar 30, 2010

I made a little program for Hobby-use, and I like it to be installed by an installer. There's an installer program (Windows Installer 3.1?) deliverd with Visual Studio 2008 but that does not do the job completely. I want a coupling to be made between a program and a the users startup directory.If Windows Installer 3.1 can do that after all, can somebody explain how? If not, is there a free or low cost, simple to use (no scripting) installer program what will do the job? At last: Is there a version of .NET Framework 3.5 that does not require downloading during the user's setup procedure?

View 5 Replies

File Overwrite - Downloading The Updated Version Of The File Running

Nov 8, 2010

I am trying to download a file off my web server (easy) but the file its downloading is the updated version of the file running. I finally was able to program my automatic update software the program simply downloads a .txt file from my web server, reads it, and if the the version = (new version here) then download. If not, then go to another form. The problem I am getting though, is when the version is outdated, the file will go to download the new .exe and it gets and error saying "File already exists"

[Code]...

View 1 Replies

MsgBox(My.Settings.version.ToString)

Jan 31, 2012

why is it that in the properties i have set version to 1.2 as a decimal but when i call

MsgBox(My.Settings.version.ToString)

i get shown "1"

View 3 Replies

Increase The Version On Application The Settings Seem To Reset?

Oct 14, 2010

Everytime I increase the version on my application the settings seem to reset. Is there a way for the application to keep using the same settings file no matter how many times increase the version?

View 1 Replies

VS 2010 - My.Settings - Can't Find File Which Reflects Changes To User Settings

Apr 15, 2011

1. I can't find the file which reflects changes to user settings. This might be because I just can't find it (I can see a bunch of user.config files but they are all empty - weird!), or...

2. I'm not actually saving them when I think I am.

Regarding 2. - do I need to invoke

Is this all I need? And if so, why are my user.configs empty?

View 1 Replies

VS 2010 Save The Treeview Items To Settings (my.settings.history)?

Mar 25, 2011

I'm working with an Treeview and i'm new at it and i have 2 questions.

1. How can i save the treeview items, to settings (my.settings.history)

2. How can i save the treeview items as an TXT or XML file or another exception.

View 13 Replies

VS 2010 Keeping Text The Same After Case Changes?

Dec 14, 2011

What happens here is when I click on anyone of the radio buttons the text box score sets the value to either 0,1,2,3,4 but when I go the next case it goes back to 0 instead of keeping the value. I tried many different techniques while going about this none seem to work.

[Code]...

View 2 Replies

IDE :: Assembly Version, File Version And Publish Version In ClickOnce In VS 2008

Mar 31, 2009

How they relate and differ from each? What are the best practices for version control? Is there a primer about publish online? Or a good book?

And is it possible to make ClickOnce and a msi in one solution of VS 2008? If so, is there any conflict or pitfall?

BTW I am using VB if that makes any difference.

View 1 Replies

VS 2010 Keeping A Password Textbox Secure?

Jul 29, 2010

I've never really used the SecureString class before but I've got a requirement in an app to have a user enter a password that will be used later in the application, and I figure SecureString is the most secure way to do this.

I have created a little dialog form where the user will enter their username and password and have set the UseSystemPasswordChar property of the password textbox to True. As I need to keep the password in memory for use later though, I have created a property in my main form that is of type SecureString and when the user enters their password into the dialog window I copy the string from the password box to the SecureString property like so:

vb.net
For i As Integer = 0 To LoginFrm.PasswordBox.TextLength - 1
Me.ConnectionPassword.AppendChar(LoginFrm.PasswordBox.Text(i))
Next

I figured out how to get the original string back when I need to (with only a slight hint from the documentation I might add ), which I do like this:

Dim OriginalString As String = Marshal.PtrToStringBSTR(Marshal.SecureStringToBSTR(Me.ConnectionPassword))

but the problem I have is that I want the user to have the option to edit the password they already entered if they want to. This is a problem because I want to avoid putting the real password back into the password box for security reasons, but then if I just put some random characters in there (just to show that their password has been remembered by the app) and then the user clicks OK on the login diaog form then it will update my ConnectionPassword property and set it to the random characters.
One option would be to set the passwordbox text to something specific each time and then test to see if that is what the text is set to when they click Ok (and if it is then obviously dont update the ConnectionPassword property) but this seems pretty rubbish because its possible (however unlikely) that the user could actually select that word as a password.

Any better suggestions? Perhaps its not worth doing anything at all and just use a normal string as the SecureString is going to have to get converted back to a normal string at some point to be used.

View 8 Replies

VS 2010 Keeping A String Of Rtf Text's Format

Apr 17, 2012

I am retrieving text from a rich edit control in an external application. The text is formatted to look something like this: Output: All is well. I'm retrieving the text using :

[Code]...

View 7 Replies

VS 2010 - Settings.settings Saved Into The Registry?

Jun 11, 2010

Small questions about the settings.settings. Are these settings saved into the registry? I'm want to use and external file for my connection-commands. I don't want to use the registry to store the strings. What do you recommend?

View 11 Replies

VS 2010 Keeping Track Of 'Active' Tabpage With Multiple TabControls?

Aug 11, 2010

I am building a sort of 'lightweight' Visual Studio, and I'm trying to implement the feature where you can drag tabs to different 'tab groups', viewing multiple tabs side by side.

I got nearly everything working, I show a ContextMenuStrip when you rightclick the tab headers, with the option of creating a new (horizontal or vertical) Tab Group. When that happens, a new TabControl is added dynamically and the selected tab is moved there. You can drag the tabs around inside a TabControl and even from one to another.

The problem now is keeping track of the 'active' tab. Since I have multiple TabControls (not just two, there can be as many as you want theoretically), their SelectedTab properties are basically useless. How am I to determine which TabControl the user is currently working in? Obviously I will always have multiple selected tabs, but only one active tab, in which the user is currently typing, editing, whatever.I need to know the active tab for obvious reasons: many menu and toolbar items act on the active tab for example. A short explanation of my controls:I have one TabGroupContainer control, which inherits UserControl. I have a TabGroup control, which inherits TabControl.I have a Tab control, which inherits TabPage.

The TabGroupContainer holds a collection of TabGroups (to which I dynamically add/remove TabGroups when required). Now I want the TabGroupContainer control to have the ActiveTab property which returns the one and only active tab (out of possibly many selected tabs).The only logical way is to keep track of the tab that was selected last, for every TabGroup.

At the moment, I am doing this:

- In the TabGroup (TabControl) class, I shadow the SelectedTab property (and return a Tab instead of a TabPage). More importantly, in the property setter, I raise a SelectedTabChanged event:

vb.net
Public Shadows Property SelectedTab As Tab
Get
Return DirectCast(MyBase.SelectedTab, Tab)

[code]....

However, it still doesn't work. I soon figured out why: I am checking that the previously SelectedTab is not the same as the new value in the property setter of the (shadowed) SelectedTab property. I don't raise the event when they were the same, and in this case they were the same (as there is only one tab in the TabGroup!).So, I took that check out, and now it seems to work when I click in the text editor.

So one problem remains: the active tab is not changed when you click on the tab header (and not on the text editor). I am clueless as to how I should handle this... I am once again sure there is a simple fix, but I cannot see it. I can click the tab header, and I'm sure behind the hood it responds to this click, but it never raises it SelectedIndexChanged event because the index didn't change but was set to the same value it already had. I cannot override the SelectedIndex property (so I could skip this check and raise the event anyway even if the value didn't change), and the OnSelectedIndexChanged method is not called, so I cannot use that either...

View 6 Replies

VS 2010 - Keeping Files / Folders Synchronized Across Multiple Client Computers

Aug 10, 2011

(Currently using VB.NET 2010 Express) I'm trying to make a program, the main of which is file transfer. I'm trying to create a program that will keep files and folders synchronized across multiple client computers. I'm using a File system watcher to trigger events, and Using a simple System.Net.Sockets UDP client transfer (found via google) to transfer commands between it and itself on other computers.

Here's that code (this just sends from one textbox to another over the internet)
Imports System.Net.Sockets
Imports System.Net
Imports System.Text
Dim udpClient As New UdpClient(1024)
Dim RemoteIpEndPoint As New IPEndPoint(IPAddress.Any, 0)
[Code] .....

By this method, I can rename, move, or delete files. I want to implement file transfer, so that whenever a new file is created, or updated, my program will automatically transfer the file to the other computers and update them there.

View 3 Replies

.net - Automatically "upgrade" User Settings From Previous Version Of App.config File?

Jul 29, 2009

Every time I compile my app and the version number changes (I have an auto-incrementing build number), I lose the user-configured app.config settings, since they're stored in the AppData folder for a specific version. Essentially, every release of my application starts from scratch as far as user settings go.

While this is a mild annoyance in development, it raises the question as I approach deployment/release - if I use the app.config to store my user settings, will the user's personalized settings be hosed every time they install a patch that changes the version number of my app? If so, is there an easy way to "upgrade" the settings from the previous release? I know that using HKCU in the registry is another option, but I like the ease of the My.Settings namespace, and I'd like to stay with app.config.

View 2 Replies

VS 2010 - Downloading Files Selectively

Aug 19, 2010

I was wondering if there was anyway to 'scan' page sources of websites and download only certain files based on their extensions, as you would by going to view -> page source in a web browser? Then, saving, perhaps, a .pdf, or a .swf file? I really don't know where to start.

View 6 Replies

VS 2010 Downloading Data From Website (.txt)

Oct 15, 2009

I'm using Webclient for downloading file's information from website host.

[Code]...

View 12 Replies

VS 2010 Downloading Multiple Files At Once?

Oct 31, 2010

I'd like to convert a VB6 application to .Net. It downloads multiple files at once and the progress is shown in a Listview. I'm using the Winsock control in a Usercontrol. Every time I start a new download a new instance of the Usercontrol is loaded. This way I can easily download 25 files at once with very low CPU usage.

I looked into the WebClient Class to download the files, but I noticed it only downloads two files at a time. Other downloads won't start unless one of the first two downloads are finished, but maybe I'm doing something wrong.

1) What's the best way to download dozens of files at once? It must be possible to resume the downloads.
2) How do I keep the downloads apart (index number?), so the Listview can be updated accordingly? I don't need help with the Listview itself.

3) Should I use the Backgroundworker or not?

View 11 Replies

VS 2010 Downloading Multiple Files?

Mar 11, 2011

I'm using a WebClient to download a bunch of small files from a website, but doing them one at a time takes a long time, approximately 20-30 minutes for all of them. Is there a way to download multiple files simultaneously, to shorten the time it takes?

View 1 Replies

VS 2010 Downloading Multiple Filies?

Feb 21, 2012

i am trying to make a program that will download different files from a direct link and i am having troubles. i can get one file but not anymore. plus is there away to let the user select the folder that the files go to? i tried using the folder browser

View 1 Replies

VS 2010 Downloading Swf Files From Website.

Mar 11, 2012

if I had the full path of a .swf file on a website: eg [URL]

I'd have the webbrowser1 navigate to the address as shown before.

Then i'd like to webbrowser to download the file, in compatibility with a savefiledialog.

View 2 Replies

VS 2010 Downloading Text Files

Oct 14, 2010

I have used many different "snipets" of code to download .txt from the interent however, each time, instead of showing [code]All failed to put it exactly how it is set out in the beginning. So I was wondering can anyone fix this? I do have a button to press so it downloads it and my declarations are:

-Imports System.IO
-Imports System.Net

View 10 Replies

VS 2010 Application.restart() After Downloading A New Update

Sep 9, 2010

I was trying to use application.restart() to restart my application after downloading a new update. It seems to run into the problem where it is trying to start the new application before the original is closed so it errors out and never starts. After reading through some threads here I determined the better way to handle it would be

application.exit() process.start(application.executablepath) This didn't work and gave me what seems to be the same problem. I would also like to note this works fine when running the application through visual studios, it is only when I try to run this independent of VS2010 that the application never restarts.

View 4 Replies

VS 2010 Downloading Files Form A Webpage?

Jan 27, 2011

Here is this code of the webpage:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>File List</title>
<style>

[Code]...

What I am wanting to do is create a program that will load up a page (it is password protected) and get the links out of any files that I need to download. The green text is the text that contains the link and will be repeated for every file.One little thing is that there are multiple pages that are accessed through JavaScript with the code highlighted in red. So, I also need to step through the pages and get a list of all files on subsequent pages.

Everytime I run this program, it will get a list of all files and only download the ones that aren't already downloaded. However, I have never done this before and was wondering what I need.I have accessed the source of pages and parsed it for things like links before, but not sure if that is the optimal way or if there is some other way to handle this particular situation easier, especially since I have multiple pages to deal with and JavaScript.

View 1 Replies

[Resolved] VS 2010 - Downloading Image From URL To File

Mar 8, 2011

I have been searching for quite some time, and while this might be easier than I am making it, but this is the first time I have tried to do something like this. My issue is that I am creating a pdf and need to include am image that I have to download from a dynamic URL. The issue I am having is how do I get the image saved to a file on our server? As far as I have seen, there is not a way to directly put in the image into the pdf - but if you know a way to do this, that might work instead.

View 4 Replies

VS 2010 Change Version After Install-Visual Studio 2010 Installer

Jun 21, 2010

Well I used the Visual Studio 2010 installer to install my application and I want it to be able to change the version displayed in the in the Add/ Remove Programs (in the Control Panel). How can I do this without going through the install wizard again?

View 3 Replies

VS 2010 : RichTextBox Edit Line By Line, Keeping The Formatting?

Jul 7, 2011

I want to loop the lines of my RTB and add a vbTab on each line.How do i do this?

View 1 Replies

VS 2010 BETA Version Of App?

Oct 16, 2010

What's the best way to store that the app is beta?You can't enter letters in the assembly info version (a "b" would be great).So is a setting who is set to Beta = True the best? I don't want to hardcode it, I want it to be at one place in the program.

View 8 Replies

Code That Works In Excel Version 2003 Does Not Work In Version 2007

Oct 21, 2008

This code no longer works in ver 2007:' Obtain max resources available for Excel

[Code]...

View 3 Replies

Make Programs Use A Lower Version Of Net.framework Other Than The Newest Version 4 That Comes With VS2010?

Jun 10, 2010

Is there any way to make my programs use a lower version of net.framework other than the newest version 4 that comes with VS2010?I use my programs within a closed network and there isn't an easy way for me to install any software since I'm not the administrator.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved