VS 2008 User Updating Application Files?

Apr 26, 2011

way to update my application executable, and a few other application files for a simple application updater that I am using in my application. The code updates the files (including the executable, manifest, and a few other files), but on Windows Vista and Windows 7 machines you must run the application as Administrator in order for it to update the files in the application folder.

View 2 Replies


ADVERTISEMENT

Multi-user Application - Updating All Clients When A User Updates Data (push Vs Pull)?

Aug 26, 2009

I am designing a fairly small application to manage a waiting area for a clinical department. There will be a receptionist who books appointments and updates exisiting appointments to say that a patient has "Arrived". In seperate rooms will be nurses who call patients who have "Arrived" and update the appointment as "In Session" and finally as "Discharged". The appointments are viewed in a flexgrid with nurses across the top and time down the left, patient names are displayed at the relevant times and the cells are shaded a colour to represent the current appointment status ("Booked", "Arrived", "In Session" and "Discharged").

I am using SQL Server as the back-end and Visual Basic 6 (I know) as my front-end.I have been told that there will be 2 or 3 nurses plus the receptionist logged in to the system but I would like to cater for growth.My question is what is the best mechanism to use in order to reflect the status change made by one user on the screens of the other users currently logged in?

I have been thinking about using a timer to refresh the data at a set interval but I do not want to keep hitting the server excessively (although what is considered excessive? we would be talking about a call for data every 60 secs per user). Plus the server could be serving data for many other applications so this is another consideration.Alternatively I have been thinking about sending some kind of message via Winsock to the other users notifying them of data changes as they happen. I don't have a lot of experience with this and am concerned about clients not receiving messages and users seeing old data. It also seems strange to me that once the days appointments have been retrieved from the database that "in theory" a client could go the whole day without having to query the database again to pick up changes - kind of scary.Some information on the data:We would probably be looking at around 100 appointments per day We capture patient name, date of birth, date and time of appointment and appointment status.What is the standard approach / best practice for this kind of scenario?

View 6 Replies

Updating An Entity (User) In Application?

Jun 21, 2011

I have a problem when updating an entity (User) in my application.

The entity is located in session when the user has been logged. So I made it:

Dim u as User = (From x in ctx.Users).First()
Session("user") = u


[code]...

I got the follow error:

An object with a key that matches the key of the supplied object could not be found in the ObjectState Manager.Verify that the key values of the supplied object match the key values of the object to which changes must be applied.

View 2 Replies

AutoLoad - User Load Application Will Automatically (without Prompt, Or User Selecting) Upload All Files In A Folder

Jun 13, 2010

How can I do it so every time the user loads my application it will automatically (without prompt, or user selecting) upload all the files in a folder i select beforehand and add them into ListBox1

View 16 Replies

Search For Files Recursively While Updating A Progress Bar And Returning The File List To The Application From BackgroundWorker?

Dec 10, 2011

I am currently trying to develop an application which will backup large folders to a specified destination. To find all the files in the specified 'backup' directory I am using the following code.

[Code]...

I have tried putting my GetFilesRecursive function into a separate background worker to run first so I can update the GUI however I am struggling on how to return the List of found files back to my application (I get cross-threading exception) and how to update the progress bar to show the progress of the GetFileRecursive function so the user knows it is processing the list of files and has not crashed/frozen.

View 1 Replies

VS 2008 - Updating EXE And Manifest Clears User Settings

Jan 3, 2011

I've got a VB .NET application that has an auto-updater that updates the exe and manifest files of the application when it finds a new version. For some reason when I update those 2 files, it also clears the user settings, even though Im not replacing the exe.config file.

View 5 Replies

Updating A Data User 2008 And Sql Server Management Studio Express

Apr 19, 2011

I'm trying to update a data user using vb.net2008 and sql server management studio express for my backend. the error says "must declare the scalar variable "@username"

Here's the code .

Private Sub btnupdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)Handles btnupdate.Click
Dim connstring = New SqlClient.SqlConnection("Data Source=MISD-

[CODE]...

View 1 Replies

Auto-Updating VB 2008 Application

Jun 12, 2010

i was playing around with the visual basic 2008's project settings. I have 2 goals in mind

[Code]....

View 3 Replies

VS 2008 Updating An Application From Internet - Hashing Method

Aug 5, 2009

I have created an updater for my application. When the application starts the user can launch an updater that will check for the latest version. Download it and copy the files to where the installation is.

Everything works fine.

However, I am looking for a more robust technique. And I have discovered it is better to hash the files on the web server with a hash algorithm and then when they have downloaded use the same hash algorithm to compare the hash values. If they are different either the files were corrupted when downloaded or some modified them without permission.

However, my problem is where do I store the hash values? I was thinking of hashing the files, and storing all the hash values for each file in a text file, and my updater will download that text file.

I am not sure if that is the best technique to use of not? Is this the normal and best way to do this?

View 5 Replies

VS 2008 Close An Application When User Shutsdown, Restarts, Log Off Or Switches User?

Aug 30, 2010

How can i close my vb.net application when user shutsdown, restarts, log off or switches user?

View 6 Replies

DB Synchronisation Behavior - Can A User Read The Entry While Other User Is Updating That On Exact Same Time

Jul 25, 2011

I have a oracle database. I use the OracleDataAdapter(Oracle.DataAccess.dll) for select, update, insert, delete operations. I don't set any (table) locks on my own(I only start a transaction). I have a oracle table named "test" with the entry "test1".

Now my question: Can Person A read the entry "test1" while Person B is updating/deleting the entry at the exact same time? What happens in the worst case? An old match/empty match or can it cause any kind of exception/error(e.g. "TableLocked-Exception")?

View 1 Replies

VS 2008 File Upload Form - Allow A User To Select From Files

Jun 29, 2009

I am pretty new at VB but am trying to design an application that will allow a user to select from files on his or her PC, hit a '>>' button, and those files will appear in a list on the right side of the button (so I can then have the application upload those files via ftp). I am planning to use a TreeView control to act as a file explorer in the application. I have been unable to find any resources on the internet to populate the tree view with the user's local file structure, and was wondering if anyone could point me in the right direction.

View 1 Replies

VS 2008 - How To Get Files From Inside Of Application

Feb 18, 2011

As you can see from the picture there are two .ico files in Icons folder inside of the application. My question is simple - how to access those?

View 4 Replies

VS 2008 : Make An Application That Can Create Exe Files?

Sep 4, 2009

how i would make an application that can create exe files.Like i make an app that has the options:

Form name:
Form icon:
Message to display:

and then you click build, and it builds an exe with the options set in the original form as the settings for the new exe.

View 2 Replies

VS 2008 Ways To Update Application Files?

Mar 16, 2010

I am looking to get some information on updating my own applications. Because what I have to do at the moment is replace the files every time it changes so I would like to know what are the options available starting with the easier ones or does it involve any third party applications. For example I have noticed some applications checks the files before it starts up and then asks a user if he wants to update it

View 4 Replies

VS 2008 Logout User On Application Crash

Mar 15, 2010

I have developed a server-client application. The program has multiple users each uniquely login in with their credentials to the system. The problem arises when the application crashes, pc shuts/restarts, the user then cannot log in as it is showing is still logged in. This is true because the last code from the program, which logs out the users , is not run because the program crashed or the pc , that is intalled on, lost power. Is there a way to go around this problem. I cannot deploy the application until this is fixed. I have placed on application exit and on last form`s closing event to logout users. It still keeps them logged in in some cases as I already stated previously.

View 15 Replies

VS 2008 Display Open Files And Folders Within Application?

Oct 6, 2009

Am looking for away to have an area in the application window to display the open files and folders basically what�s open on the task bar.Also if the above is possible is there away to have this clickable so if something is minimized it will open upon clicking it.

View 1 Replies

User Input Not Updating In New Dgv Row

Nov 4, 2009

I have followed a tutorial at url.... It is a very good tutorial but it is also a little dated. Most people who visit it praise it to high heaven so I decided it was a good place to start as an absolute beginner to programming. (I have teamed it up with Dan Mabbut Vis basic tutorial at about.com and joined DreamInCode in order to learn what I can accomplish with Visual Basic 2008 Express ). I am up to part 6 of 7 but keep going back to part 4 because there is one aspect I just cant work out.I am creating a form which logs staff in or out of work and allows staff to include a message with their ( at work /away from work ) status details on the form.The form is supposed to update a users status in a new row when they click a button. In my form the rows per user are being over-written with the updated information - it is not being written in a new row. There is a login form which precedes the staff status form - this has a little relevant code re calling the user info from the database but I think my problem is related to the insert statement in the middle of the below code.[code]

My code has changed quite a bit since the above as the form has progressed but the problem started at the stage above and has not changed with the forms progression. Every other aspect of staff update info is working well in my form - just not in a new row.I am going bald - The tutorial was written for VB2005 Express - I am using VB2008 Express though it has not made too much difference to the tutorial.

View 3 Replies

Updating A Progressbar While Extracting Zip Files?

Mar 24, 2012

I would be grateful if someone can help me with this task. I am trying to extract a zip file and update a progress bar as it is being extracted to the d: drive. I assume the progress bar has to be set to the size of the text.zip file and update the progress bar incrementally but not sure how to actually implement it. I have it in a "do Loop" but it does not seem to be correct. If anyone feel like helping I would be grateful for that.

[Code]...

View 2 Replies

User Data - SQLCE Files - One Database With Multiple User On PC

Mar 3, 2010

I'm designing a PC-based app that has a little local database. I'm using VB.NET with SQL Server Compact Edition. The user will only ever have access to one database file, because it's all about storing a user specific data. However I'm thinking of the situation where there could be multiple users that access the PC, each with their own Windows account. So ideally I'd need separate database files for each User.

I'm not sure how to implement this. I was hoping to deploy the 'empty' database as a ClickOnce deployment, but I can't see how I can have a database per user doing this. Also I'm not sure where to store the database files anyway. perhaps in MyDocuments for each user? Or perhaps I need to stick to just one database, but add a 'User' column into every table, so it can hold data for every user. I didn't want to do this though - because I wanted to keep the nice separation between the data offered by physically separate files.

View 3 Replies

DB/Reporting :: Using SQL 2008 Express With A Multi User .NET Windows Application?

Mar 26, 2009

I'm using SQL 2008 Express with a multi user VB.NET Windows application. Do I have to add each user to the SQL user account? Does NT AuthoritySYSTEM work? I do not know how this works. So far I have NT AuthoritySYSTEM in the Security-Logins of the Server. But do I have to add it also in the database? In the databse Security-User, I have the following:

[Code]...

View 1 Replies

VS 2008 Creating Folder Structure In User's Application Data?

Mar 16, 2010

I want to store my log files in the user's Application Data folder (to avoid all the hassle with Windows 7/Vista UAC permissions). By default, though, the app creates the folder structure like thisAppData/CompanyName/AssemblyName/AssemblyVersion/I just want a single folder without the AssemblyName and AssemblyVersion. Other than removing that info from the project, is there any other to just create a single

View 1 Replies

Cannot Read HTML Help Files In Visual Basic 2008 Windows Application

May 1, 2011

My students did a tutorial in HTML Help Workshop to add Help files to a VB 2008 Windows application. They zipped the files and uploaded them to our class web site.

I downloaded them at home, unzipped, and tried to check, but every one shows Table of Contents or Index and cannot find the .htm documents for the topic. The same thing happened in my office. However, these projects work correctly in our classroom
lab and do display the .htm files.

View 4 Replies

DB/Reporting :: Updating Output For End User From Database?

May 2, 2008

Alright, let's try this again. I have an mdb file as a database in my program, I need this mdb file to be what my published program reads off of. Is there any way to have Visual Basic (2008 Express) not encode my mdb file to Example.mdb.deploy?

View 1 Replies

How To Create Form For Updating User Password

Jun 15, 2012

I am trying to make a form for an app that will update the current users password to something new of his choice but I cant seem to make it update the database and just says the wrong password statement.

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Dim connection As New SqlClient.SqlConnection
Dim command As New SqlClient.SqlCommand
Dim adaptor As New SqlClient.SqlDataAdapter
Dim dataset As New DataSet
[Code] .....

View 7 Replies

Updating The Non-VSHost Exe's User.config File?

Apr 25, 2012

I have a program that runs fine in the debugger. I started on the project in x86 mode this January and I've always been able to run it outside of the debugger, but this is the first time I've seen this error.The error says "ConfigurationErrorException was unhandled: Configuration system failed to initialize."The InnerException of the error said that the error was in the user.config file, and it gave me the directory of the user.config file that it was using. So I clicked synchronize in the project settings thinking that it would overwrite the current user.config file and that would probably fix the error. When it showed the confirmation dialog that it would delete the user.config file, I noticed that it had "vshost" in the directory.

View 1 Replies

VS 2010 Restrict User Updating A Combo Box?

Oct 11, 2011

When the user open the form a textbox is displayed that picks up data from a table. If they click Change button a combo box is displayed that allows them to change what was originally in the textbox. The combobox is updated with whatever was in the textbox as shown below.This all works fine but the user can add something in the combo box that is not in the list which is bad.

cmbAddBook.Visible = True
cmbAddBook.Text = txtAddBook.Text
txtAddBook.Visible = False

[code]....

View 1 Replies

Creating And Updating Ms Access Mdb Files With Visual Basic?

Feb 27, 2010

how can i create and update mdb [ access ] files in visual basic 2008..and also if i have a dll library how can i get all of its syntax for using it in visual basic?

View 2 Replies

Program Not Updating Screen - No Response To User Input

Jan 2, 2012

I have a program written in VB 2010 express under windows xp which does some heavy number crunching combined with serial communication. When it "gets too busy" it does not update the screen anymore (done simply with Textbox.text = "any text") and it does not respond to user input in any text box. Not even to a click on any text box. Is there a way I can get the program to do screen update and respond to user input while it is busy?

View 3 Replies

Updating Applications - Startup Folder With The Files From The Newer Version's?

Jul 25, 2009

I need my application to update as it is on multiple computers. Will the program update and work if I just replaced the files in the application startup folder with the files from the newer version's application startup folder?

View 6 Replies







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