VS 2008 Store Information From A Form Before It Is Cleared?
May 18, 2010
I am looking for information on how to store information that has been entered into an application form before it is cleared for new information. I would like to store it with a date and time stamp if possible.
View 2 Replies
ADVERTISEMENT
Jan 10, 2009
This is kind of hard to explain... I would like to create a listbox, that holds items, and those items store data. Ill try to explain with this picture below. The code I have now is
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
[Code]...
View 2 Replies
Mar 24, 2010
I would like to create a listbox, that holds items, and those items store data.Ill try to explain with this picture below.The code I have now is
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
ListBox1.Items.Add(TextBox2.Text)
End Sub
How do I add information to the item that gets added to the ListBox?(My Button three is the Add to List button)
View 2 Replies
May 14, 2009
I want to store some string information in my application exe. The information should not be lost in when the application is closed or restarted. It should be like editing a text file in application resources.
View 14 Replies
Aug 7, 2011
I am trying to store confidential encrypted user information for my program on a single computer. I do not want the application to be copied on to another computer and be usable. So I was thinking about storing the information in the Registry but I read that that is a very unsafe location and is bad for more reasons then one. I started storing the information in the programs Settings.config file but I am not sure how to encrypt that information. The only thing I have gotten to work so far is storing the information in a XML file and encrypting that which has worked but I want the information to be more hidden and more secured.
View 9 Replies
Jun 21, 2010
I was wondering how you can copy information (from a webpage, for example) and store it in a string?Also, how would I take only one word of the string if there are spaces between words and I will always be removing the word with the same location in the string (for example, the last word in string).
View 1 Replies
Sep 7, 2011
I have a config file that I store information in and parse using streamreader. For example..
configfile.txt TEMPLATE NAME: mytemplatename TEMPLATEDIRECTORYPATH: C:TEMPWOOF.TXT
I had been doing a split function after the ":" but, that doesn't turn out so good once you add in file paths. I have turned to trying to grab the first ":" from the left using the "InStr" function which returns the char integer. I need a way to grab all the information on that line after the first ":".
View 4 Replies
Apr 23, 2009
I have an ASP.NET application. It resides within another ASP.NET application. I put my DLL in the other apps bin folder and have a subdirectory with my aspx files. I can't edit the main app's Web.config.
So where can I store configuration settings? For example, this is an app that will get deployed to various clients. I want to store the client name used for display in the headers and such. And the location of a logo file.
View 3 Replies
Mar 11, 2009
I am new to development and I am looking for some pointers. I have a sql 2000 database and a vb.net app. Right now the SQL username and password to connect to the database is stored in the VB application which is not convenient since we must change the password periodically. The user opens the app and enters the username and password for the vb application. Using the credentials stored in the application to connect to the sql server, the app checks the username and password stored in a user table in the database to determine if they are allowed to connect or not. For various reasons, it is not feasible to simply have the application username and password be the same as the database username and password. We must have only one database username and password and it must be changeable. Like I said, it is now stored in the compiled application which is inconvenient.
View 1 Replies
Feb 1, 2010
While trying to find an answer to my question, I came across a project called OTSe, which allows people to make they're own online 2d online games. The system is based on an open X, Y, Z square tile map. For the sake of easy understanding, lets say they're are 3 types of tiles. Tiles you CANNOT walk on, tiles you CAN walk on, and tiles that SLOW YOU'RE CHARACTER DOWN.The project team has created a API class for users to work with in order to develop tools. What I'm trying to do, using they're classes, is GET the all the tiles on the current floor I am walking on, and then display them in a tile grid on my form, changing they're color depending on what type of tile they are. If the tile is NOT WALKABLE, make the tile gray, if the tile IS WALKABLE, make the tile brown, and if the tile SLOWS YOU DOWN, make the tile red. I also need it to store the information of each tile, since tiles are objects, and have properties.
[code]...
View 1 Replies
May 30, 2010
In my application I want the user to enter information that can be stored in BOTH an SQL database and and Excel spreadsheet. I tried research but can't find the code to include or import Excel
into my project.I've seen examples like:
Dim excelApp As New Excel.Application
Dim excelWB As New Excel.Workbook
etc....
but VB doesn't recognize it as a shared namespace. Is it possible to load a spreadsheet into a VB project with express edition?
View 2 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
Aug 20, 2009
I need to have the ability to have a Global variable/class that stores some basic information about the currently logged in user including that user's preferences, security rights, UserID, etc. This information will be needed by any/every part of my application. In the past I have either used a Public variable/class in a vb.net module for this purpose. I'm trying to get away from my old ways of doing things and was curious what people currently do for this functionality.
I am thinking a singleton or 2 regarding preferences and security but am not sure if that is the best way to go.
EDIT: I asked this when I was too sleepy last night. This is an n-Tier WinForms application.
View 2 Replies
Oct 13, 2010
I want to build an application using VB, that is essentially an information system.The operation of this system would be as follows:1. User can select one of several buttons, each button being a different topic.2. When a button is selected, information about that topic appears on the right hand side of the form.3. The system allows information to be added by a user So, for example, if a user clicked on the button named 'Banana', information about the banana would appear on the form, where the user could read this info, scroll down etc.I would also like the user to be able to search a specific word like 'apple' and for information on the apple to appear.How could I implement this? I don't know how I would store paragraphs of information, and then search for it based on a keyword.
View 1 Replies
Apr 27, 2012
I need to store specific information about a user in a file of some sort. Something like an old ini file?
I will need to save a file for each customer.
CustomerName
OrderDate
DeliveryDate
[Code]....
All things point to a database but for several reasons I can't use a database.
View 2 Replies
Dec 4, 2008
I am writing a VB 2008 program to display and update records from a sql database. This particular form is used to display and modify retail store information records from the database. I am running into an issue with saving the records once they have been changed.The error message I am getting is "Update requires a valid update command when passed DataRow collection with modified rows". I am including all of my code for the form because I am not sure what is relevant. I am getting the error when SaveTheEdit() is called on line 83. [code]
View 2 Replies
Jul 5, 2011
make a application where I can store a lot of account information in a file on my computer. This is how it works so far.I have a class called "AccountInfo" with some properties such as Account Name, Password, etc... This is bound to a DataGridView via a Bindingsource. So basicaly what I'm asking, is how can I save/load all these accounts in my computer easily in a file or something?
View 2 Replies
Jan 9, 2010
I want to know how you can open a form with specific information as if you are just calling a sub, kinda like how a message box is. Example:
MyForm.Show("The form title")I also want to know how I could apply this to forms that are being created from pre existing forms. Exaple:
vb Dim NewMyForm as New MyForm("Title Text")'Now I want to know for each of these next 2 lines of code, think of them as being different codes all together.NewMyForm.Show() ' orNewMyForm.MdiParent = Form1NewMyForm.Show
View 30 Replies
Jul 16, 2011
How can i capture my console real time output and store the information in a log file?
i know that i can write in the file when i write in the console window, there's got to be a better way... how can i capture the console's output stream?
I found that Console.OpenStandardOutput is a stream, but i can't read from it
Dim r As New StreamReader(Console.OpenStandardOutput)
MsgBox(r.ReadToEnd)
r.Close()
r = Nothing
View 9 Replies
Feb 16, 2011
I'm a newbie in visual basic. I'm doing a login system. I'm done with the GUI. but for the programming part, I want to know where to store new user's information along with the username and password. I've done research. seems like it has something to do with database. p/s: I'm looking for high security in storing data to prevent hacking.
View 1 Replies
Feb 27, 2006
I am trying to come up with a way to store 3 pieces of information for each employee in the company on a daily basis. So for instance
Day 1: Joe, 8, 80
Day 2: Sam, 10, 90
Day 3: Bill, 5, 40
Day 4: Bob, 8, 40
Day 5: Sue, 2, 50
most of the applications that I build are Create, Read, Update and Delete type applications that don't really need arrays so I have almost no experience with either.
VB
'
Dim iDays As Integer = NumberDaysPerMonth(Date.Now)
Dim DayNumber(iDays) As Integer
[code]....
View 19 Replies
Oct 23, 2009
I have some info in a listbox on another form. I want that information parsed to another form, and I would like to, for how ever many items there are in a listbox, create a button for every item and obviously parse the name to another label. I guess I would do this via an array.
View 2 Replies
Jun 30, 2010
How Do i save my informaion i put in form at run time i think i need a data base but im not sure..
View 12 Replies
Jun 14, 2009
I need to store the Location, Size and WindowState of my application when it is closed, so that it can be re-opened in the same state later. I thought I could use simple coding and the Settings to achieve this, but I noticed the PropertyBinding of the Form in a tutorial and decided to see if I could use it.
[Code]...
View 4 Replies
Apr 24, 2012
Basically i am creating a console application that will create and store client information as a .txt file it is going okay but i have come across a slight hick up i want to use something on the lines of this .....
dim lastname as string
Do Until Integer.TryParse(Console.ReadLine(), LastName) = False
Console.WriteLine("Invalid input, Please try again")
Console.Write("LastName:-")
[code].....
this works fine to trap out numbers from letters but the problem i am getting is when the program calls uppon LastName it is recording 0 and wanted to know if there is a way of getting past this ..... so basically i need a way to allow letter but not numbers and symbols and then dispay a pernolised error message but at the same time use Stream writer to save was the answer is in a .txt file.
View 3 Replies
Jun 10, 2011
The idea is that I have certain values stored in textboxes/listboxes and thus can I store the information in a spread sheet. And if I change the value in the spreadsheet can it also change the value in the application? I had one idea which was to make both store data in a txt file and read from that, but I'm not quite sure how to do that either.
View 1 Replies
Dec 4, 2009
am trying to store and retrieve data from a closed excel worksheet while in a form created in vba studio express 2008?
View 3 Replies
Dec 30, 2011
The info i need extracted is formatted:
<TD><A HREF="http://xxxxx.com/xxxxxx/index.html"><IMG SRC="../xxxxx/thumbnails/xxxxx.jpg"> </A></TD>
<TD>=== <B><A HREF="http://xxxxxxxxx.com/xxxxxxxx/index.html">LINE 0</A></B> ===<BR>
<FONT SIZE="2" COLOR="#400080">
[code]....
how do i extract the info between TD=== and /a and Line 1,2, and 3 and store it into a database from a live website?
View 2 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
Jul 11, 2009
Well I'm in the middle of making a program to edit .ini files. Although I have hit a snag. I can save my settings (relies off checkboxes) with ease, however if I change something and/or hit the save button again even after the code has finished, both my entire .ini files are cleared (filePath and filePathPrefs) and all text is gone. Here's my
[Code]...
why it's clearing the .ini file even after the initial write worked? I've tested to make sure the entire code has finished before making another save with different settings but the issue happens again.
View 5 Replies