Store Data If The User Quit / Exit The Application?
Sep 7, 2009
I want to store some information of the form in such a way that if the user quit/exit the application it stores the information. When user runs the application next time the information should be available to him. It also involve the restart of the computer. The application is in vb.net 3.5 framework. The one way that i can think of using flat files and encrypted data, but i can not do this. I do not to store any kind of data on client side and I can not store this information on server side. The problem is of getting client machine information and storing it on server.
View 3 Replies
ADVERTISEMENT
Jun 21, 2011
I have following VB.NET console application [code]...
View 3 Replies
Jul 12, 2011
Which is the best way to store application and user settings of an application running with multiple instances?My problem is that using the vb's "Application Settings" one instance would overwrite the other one.I want to identify each instance with a number passed via command line argument. I could use this number to identify the appropriate settings of the running instance, but I see in a local INI o XML file a better way to handle that.
View 1 Replies
Aug 20, 2010
I have just done my program, just skeleton not completely, the final problem has not been solved up to this time.When I run my application, the Icon of its will be showed at TaskTray. I would like the icon is there when I exit fom of application and then If I double click on the Icon, the application will be showed.
View 5 Replies
Jan 20, 2010
I'm developing a program using VB 2005.I've tried to use the following instructions to "kill" the application
Application.Exit()
Environment.Exit(0)
(not at the same time)
[code]....
View 6 Replies
Aug 24, 2010
I'm a newbee with VBnet , I use vbnet2005 I have a major form called FORM1, and when I click the bottons in it it shows another form for example-I have these some forms (printscreen):
FORM1 - major form
FORM2 - calculation form ( there are few forms like this)
FORM3 - result form
What I need is:When I open FORM2 and get results I push the botton SEND and then it should send the values into FORM3 I don't know if the public variable will be good here because they are not constant , I can get different results in FORM2 ,and these results should be writen in textboxes only after I push send bottom.
I hope it is clear , I don't know how to do it,if you can give me a code for this or detailed answer , I would be very glad.
View 3 Replies
Mar 22, 2012
I am coding a program that will allow the user to input 5 payrolls for Store 1, Store 2, and Store 3. The total of the 5 payrolls are then added together and shown in the respective Store's labels. A total label is also there to add up all the totals into one number. The numbers in the label must be in currency form. My problem is the numbers don't add correctly when I hit calculate. The first two numbers add together, but then after that the number just seems to subtract a random amount.
So far I have this --
Public Class Form1
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Me.Close()
End Sub
[CODE[...
View 14 Replies
Jun 12, 2007
I'm having a bit of a problem getting my application to close properly. Basically I have one main form from which all other forms open. If a user tries to close that main form, I want to bring up a MessageBox asking if they want to exit the application.However, when I try to do that it asks the question twice. It seems that the Application.Exit() is triggering the FormClosing event again for some reason, but I don't know of another way to exit the application. BTW, the main form isn't the startup form so I can't use the option to close when the startup form closes.
View 9 Replies
Jan 8, 2011
I'm trying to make a application with a login system. I want to store user and password information, into the application. So I can access it from my administrator account. I have tried to make a textbox for every username and password,And then save it into my.settings And then I run the finished application, it works fine to store the information. but if I copy the application after I had entered some user/pass information. All textboxes I blank on the other computer.
View 4 Replies
Mar 28, 2011
I'm creating a desktop application in visual basic using an online mysql database, i have the login script done but how would i save the users id into a session and then use there information for there profile page?
View 13 Replies
Nov 26, 2011
Since some of my users log on as non-administrators, (without administrator priveleges), where would you reccomend I store their programs data files. For example, the program Test Prog would store user data in: [code]The problems is permissions file access when they are not signed on as the administrator and they need read write access to their data files. Also is there a universal system directory name I could use so it would be the same on all users computers, like %Documents% or something?
View 2 Replies
Jan 30, 2011
I am creating a windows application using visual studio. I want somehow to insert an excel file into the application so the user will be able to download it from the program and save it to his computer. This means that the file will be a part of the program. There will be a button that will prompt the user to save the particular file somewhere so he can then view it.
What should I do in order to "embody" the excel file to the application? And what code should I write to link the file with the button?
View 8 Replies
Sep 17, 2011
I would like to develop a program to create a report after reviewing a facility's processes (Quality Issues). The reports are to be created using Microsoft Word 2010.
I'm OK with developing the forms and controls to access the form and the user inputs.
What I need guidance on is the best way to save the input information from the user forms (over 100 total) as it relates to that facility, and to retrieve the info in case clarification is needed. Also, each user may have several facilities to review.
View 5 Replies
Jul 22, 2009
How can I make this program not to give me the results for the quit command input of -999 but rather just to quit without the results?
Sub Main()
Dim TempIncelsius As Double
Dim TempInput As Double
Dim Formula As Double
[CODE]...
View 4 Replies
Feb 1, 2010
I am currently developing an application that will require each end user to specify a rather large set of tabular data specific to his/her own preferences. Each time the user starts the application, it will load this set of data.
what is the best way to store this data locally on the end user's local machine? Should I use XML, Access mdb, flat text files?
View 2 Replies
Aug 16, 2011
I am trying to implement login page using Form Authentication in ASP.net using vb code.I follow the steps in How To Implement Forms-Based Authentication in Your ASP.NET Application by Using Visual Basic .NET. I created a function in login page :
Private Function ValidateUser(ByVal strUsername As String, ByVal strPassword As String) As Boolean
and call it in btnLogIn_Click
Protected Sub btnLogIn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogIn.Click[code].....
Things works fine and i can get the username display in label.However,I need to get more user data like UserName, Fullname and RoleCode. Also, i would to display the user's fullname to instead of usename in welcome message. I was told this can be done using FormsAuthenticationTicket method to store addictional user data in the "my user data" section. Do i need to create a user data class to store the user data and then use it in the FormAuthenticationTicket? If yes, how should i do it?
View 1 Replies
Feb 16, 2011
for an example I'm making an RPG game for learning purposes and I have several modules, each for storing different data (one for items, one for enemies etc).I'm storing each item or enemy in a structure in the module so it's easy to find and obtain the values and makes it easier to add more when needed. I'm sure there's a easier way because at the moment I'm storing it like this:
[Code]...
As you can see, I have all the weapons(which are in a structure) nested into another structure called "weapons" so it's easier to find.Is there an easier way to store the data and make it still readable, obtainable and easy to add more weapons later on.To display the stats on the currently selected weapon I have to test for which weapon is selected and then several lines of code just to display the stats for that one weapon.
View 7 Replies
Jan 28, 2012
The company require an application that displays coffee usage information for the managers of CostaB Coffee. Sample data has been provided for last years (2011) monthly usage amounts in kilos and is as follows: 400.5, 450, 475.5, 336.5, 457, 325, 220.5, 276, 300, 320.5, 400.5 and 415.
Requirements: The main form will allow the user to enter and store monthly amounts in an appropriate data structure. It will enable the users to calculate the total usage for the 12 month period and average monthly usage. A further requirement for the application is for the users to be able to display the monthly totals in ascending (smallest to highest) and descending (highest to lowest) order of the monthly usage amounts. Utilise appropriate formatting for input/output and include appropriate error trapping and data validation in the application.
View 12 Replies
Nov 17, 2010
I am just wondering if there is any way I could copy a bit of text using whatever application, but having a clipboard application of my own to store all of those on a listbox? So if it possible, how can I catch a value when I the user copies some text? I could make a cool application that would be quite handy... is there any event that could catch the data when something is copied onto the clipboard?
View 14 Replies
Nov 9, 2011
how to work with distributed application in vb.net that automatically stored data into server? How to configure to ensure the consistency of data being stored.
View 6 Replies
Jun 15, 2010
does someone know if it is possible to build an application that store data in a folder locked by truecrypt where the application
1) create the encrypted folder
2) pass the password to read/write the data?
View 4 Replies
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
Mar 2, 2012
i just write code for application, in which data is get by user and entered data is to print in a particular format?give me a code for vb.net button by which after click on it will print entered data?
View 1 Replies
Sep 3, 2009
I am trying to close my application and I have coded on the form closing, form closed events to call an exit form which asks the user for confirmation to exit or not. All works fine. When I press the X button on the winform things act different. On the main form where I press the X btn I store some user ID data that I use throughout the app. If I press cancel on the exit form that data is lost from the main form and cannot be used afterwards. So if the user pressed by mistake the X btn and then presses cancel on the exit form the application loses some stored data and many functions stop working.
View 12 Replies
Mar 17, 2009
I'm looking for what will allow the user to be able to use the Enter key to exit a TextBox control.
View 5 Replies
Mar 17, 2011
We were using the parent's FormClosing event handler to get user confirmation of the exit before continuing, but have just discovered that the child windows get closed before this is run. We only want a single confirmation message box, but I guess that would require the child windows to ask the parent to confirm.
View 1 Replies
Mar 18, 2010
Actually my problem is to stop a loop when i click on stop button. example:i have two buttons 'start' and 'stop' in start buttom i wrote a for loop as
[Code]...
View 1 Replies
Aug 5, 2011
I have recently implemented to following code on a good deal of my forms.
Public Overrides Function InitializeLifetimeService() As Object
Return Nothing
End Function
It has worked great to solve some of my odd application hangs when the application has been running > 1 week.However, when the user closes the program I now get an Application Crash screen.how to stop this? how to put it back to "normal" with a global variable?
Public Overrides Function InitializeLifetimeService() As Object
if readytoExit then
' Return... not nothing?[code]......
View 1 Replies
Jan 25, 2012
My application exits sometime without any exception. I am using loop in separate thread to read HID device.
Private Sub USBListenServer()
If (readHandle IsNot Nothing) AndAlso (Not readHandle.IsInvalid) Then
Try
[Code].....
View 1 Replies
Dec 8, 2010
Can anyone tell me what the technical difference is between Application.Exit() and End?Why would you choose to use one over the other, for example?
View 5 Replies