Program First Open And Saving Data When Program Is Closed?
Nov 19, 2011
I am currently working on a menu driven console program that so far has 4 menu options of checking internet connection, decrypting/encrypting a message, calculator, and a logout, and i am wondering about a few current things.
1. How do i make it to where, when a program starts for the first time, it asks for a user to enter in his data, like signing up for a site for the first time?
2. How do i make it to where the program will save the data entered, and does not delete when the user closed the program.
3. How can i make it to where when a user signs in, his/her data is read correctly? Like an array search for a multidimensional array.For my "New user" sign data i created a function...
Function createNewUser() As String()
Dim name As String
Dim userName As String[code]...
View 2 Replies
ADVERTISEMENT
Feb 8, 2012
I am looking for an easy way to save the value of a variable when a program is closed. And then when it is reopened the variable has the same value as what it was previously when the program was closed. The variable has an integer value.
View 2 Replies
Jan 28, 2009
My program will need to store some settings for when the program gets closed then opened again. I would then like to reload the settings?
- Flat file
- Database
- Registry
- Other
View 1 Replies
Jul 4, 2012
I have my rpg, still, first time working on it n ages, and I want each user to be able to set their own personalized picture background for the game...
each character in the game has its own dedicated folder for each file that the character has relating to it...
what I want to know how to do, is to have my game copy the loaded/chosen background image to their respective characters data folder, and have the game reload/reset the games default background image, to the one piced by he player...I am having a hard time figuring out how to do this however...I've tried a lot of different things...and nothing is working yet...
here is my example code right now:
[Code].....
View 3 Replies
Apr 16, 2009
I have been working on a project which is used by a company's sale team, to combine all the wanted input data in one place allowing the sales team to show customers, where switching to them could save them money.
Basically what i want is a program which can save single records, which can hold data added in other text boxes, or indeed take the data from the list view boxes which is the intended output. I want to be able to save that data, then be able to Open it up again at a later date, and even modify it.
enabled me to save the three ways to identify a single record, the index number, company name and the date it was added. However I now need a way to save the data entered in my other forms to these single records.
View 1 Replies
Aug 21, 2011
I want to work on a project I have in mind and this envolves saving data which would need to be updated every time the user exits the program. I suppose I need to know how to save a file to a blank text document, and how to get the application to read the information when it is called for. I believe I need to set delimiters or such, the helpfile is useful, but limited and some information is not listed at all.
View 7 Replies
May 7, 2010
I have a dataset along with code for validation. When I use a datagridview and setting the EditMode to OnEnter I get the red exclamations telling me that I have an error when this is needed. This works all good. when I click the save button on the BindingNavigator, the application saves the record even when this validation is showing. How do I filter up this validation code through a datagridview and stop the program saving the data? If you need the code for more information, I will add this to the forum.
View 2 Replies
Dec 27, 2011
in my Application Prime95 is opened for 60 seconds. i want to know how to make the test end if the user closes prime95.
* how to detect if prime95 is not running in short *
View 15 Replies
Oct 26, 2006
I would like to read information on a Web Open Connect Screen into a VB program and send appropriate key stroke based on the screen been presented.
I am able to send to the screen using SendKeys but I don't seem to be able to manipulate the cursor and read the data at the cursor position.
View 1 Replies
Dec 2, 2010
What makes it even harder is that I can't replicate this problem on my computer very consistently. Sometimes I will get the error but most of the time I won't. Basically what is happening is I am creating an IE object which my program then controls for a long period of time. What is happening is, if a user exits the program it calls oIE.Quit() then closes the program. This should close internet explorer and all processes associated with it.
But, the iexplorer process doesn't end up closing. Then when the user tries to run the program again we get this error "System.Runtime.InteropServices.COMException (0x80004005): Creating an instance of the COM component with CLSID {0002DF01-0000-0000-C000-000000000046} from the IClassFactory failed due to the following error: 80004005.".
To fix this we simply close the any iexplorer.exe processes that are open and it will let us create our i.e. object again. This happens also if the program crashes and they try to restart it. I am not sure what is causing this or if I am missing something that has to do with com objects. Here is some code although plugging in this code likely won't reproduce any errors:
'create ie object
oIE = New SHDocVw.InternetExplorer
oIE.Navigate("[URL]")
oIE.Visible = False
oIE.Silent = True
'kill ie object
oIE.Quit()
View 1 Replies
Aug 5, 2011
I have a program which when a button is clicked on a form sends the form to the back, so that Notepad can open on top, then it opens up notepad
Me.SendToBack()
System.Diagnostics.Process.Start("notepad.exe", myPath & "*********.txt")
Now what I want to do is to detect when the notepad has been closed then I can bring the form back to the front and I just do not know which commands to use for this to detect a program outside of VS 2010.
View 7 Replies
Mar 16, 2011
I want to call a function in asp.net with vb.net when browser is closed. But I want only browser close, not tag close and other.
View 1 Replies
Jul 23, 2009
I'm making a simple app that checks if Windows Media Center is open, if it is open and the program receives the close command from windows, make my application shut down the computer. I was wondering if this was the most efficient way of doing this:
[Code]...
View 6 Replies
Jan 2, 2012
My program will need to store some settings for when the program gets closed then opened again. I would then like to reload the settings, and I was wondering what is the best way to do this with VB?
- Flat file
- Database
- Registry
- Other
View 4 Replies
Mar 18, 2009
why when I am Closing the program by clicking on the X button, the NotifyIcon did not closed? it just stay there until I move my mouse over it....
View 5 Replies
Apr 25, 2011
I'm trying to create a program, that upon opening, will read an input file containing a delimited employee record. The record will contain the name of the employee, their salary and the number of years they have been employed.I'm looking to display only the name of the employees in sorted order(alphabetically) and then when the user of the program selects a particular employee, I want to display the salary and number of years for that employee.I would like the user to be able to edit the recors for the employee and I would also like to have a way for the user to be able to add/remove an employee record and update the input file before the program is closed.
View 5 Replies
Aug 27, 2009
Is it possible to only make a program open when another program opens it? so when someone tries to open it themselfs by clicking on it, it pops up a error message?if so then how would someone go about doing this in VB 2008?
View 9 Replies
Feb 27, 2010
I believe I need the code for Load Event. I have tried many ideas. I have searched the threads here and also google of course. No luck as of yet. Better description: I have a file named hello.txt. The contents of this text file are "hello". I use my program as the default for .txt files. I dbl click hello.txt. My program loads and the contents are blank and it should have "hello" in it.
View 31 Replies
Jul 7, 2010
I am working on a program that takes data from a survey in the program and needs to compile it into a PDF file. Optimally it would just be a snapshot of the filled out survey. I tried using the PrintForm component in the PowerPacks section, but I need a PDF not an EPS.
View 1 Replies
Jun 15, 2009
Okay, i have this program that gives the user some settings that need to be saved and loaded when the program runs. Can anyone help me with this?
View 15 Replies
Oct 21, 2011
How can I make it such that the user can only open program B.exe from A.exe?
View 9 Replies
Mar 26, 2012
I am using this code of VB.net.
Filling Data Set, Assign DataView, Navigating Record.
Every things is going fine. but permanently record is not updating (Saving) in SQL Server Express.[code]...
View 4 Replies
Nov 23, 2011
I am trying to write a code that lets you open a text file and display it in a text box. I need to make it so that when the user tries to close the program it will ask them if they want to save any changes made to it.
View 3 Replies
Dec 28, 2010
How can I combine specialized string collections so that I can accomplish this :
-Save all the tab's texts from a tabcontrol
-Save contents of the tabs : eg.Every tab contains a label and I save the text of each label
And the real problem:
-Loading them when the program opens
I have made some thoughts about saving them, but not about loading them
setting.TabNames.Clear()
setting.TabLabels.Clear()
For Each item As TabPage In TabControl1.TabPages
Dim name As String = item.Text
setting.TabNames.Add(name)
[Code] .....
View 9 Replies
Oct 7, 2009
I've seen used the datagridview to save the changes.
I don't use a dgv, but rather I connect directly to access and when a text field has text in it, it takes that text and searches, and updates various text boxes with the according information (finds a row, and takes all the data in the columns and adds it into their respective box). There are approximately 5-7 text boxes being used at the same time, and only a few will be changed.
How would I go about updating and saving through the VB program?
Here are some relevant pieces of code:
Dim con As OleDbConnection = New OleDbConnection("Provider=Microsoft.jet.oledb.4.0;data source=C:\InventoryMusic.mdb")
[Code].....
View 1 Replies
Mar 16, 2011
Iam looking for a way to save a checkbox' state between runs. So that if a checkbox is checked and the program is the closed down, it will remain checked when the program starts up again and vice versa. I've found som deferent guides around the web but i cant seem to get it to work..
Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
Dim ExtApp As Integer
[code].....
View 5 Replies
Oct 3, 2009
How do I save my programs settings in a document? Like total sessions used, Total accounts created. Also, How do I make a text file save and load every time the program is opened or closed? The saved accounts should be like this in the text file.
Account: Account name E-Mail: E-Mail used Password: Password used
Account name, Password, E-Mail will will all be in a textbox or combobox so if you can make it save from there. I have an total accounts created combobox. How would I make that load into a combobox and then when session is closed they all save. So loaded into a combobox then saved into a text file.
View 3 Replies
Mar 17, 2012
I would like to create a program that user can save his settings in the program and not on the computer .I want to make something like icon changer ιnstead it will work for strings not icons String Changer?
View 4 Replies
Sep 27, 2010
The projects I've made in VS 2008 and VB6 are pretty basic. I use VS 2008 now, and I was wondering how I could accomplish something like this:Let's say I want to make a toolbar and in the toolbar (under Options...) I want to open up a dialog box that will allow users to change preferences to the software I've made. Let's say, for instance, they can set the background color of the main form to customize their software a bit.
View 2 Replies
May 5, 2012
is it possible by 1 program to save settings to another program without running the program that is being edited?
View 6 Replies