Standalone Forms: Saving Given Data
Feb 5, 2011
So I'm a beginner and I'm guessing this has been asked before, but can anyone tell me how to save multiple inputs from textboxes and radio buttons etc. as one whole umm... thing in a STANDALONE form. I don't want any extra CFG or INI files etc. Kind of like how a new profile in a game would work. I'm a beginner so please try to keep it simple (or if you already know of a thread with the exact same question please link that as a reply instead).
View 2 Replies
ADVERTISEMENT
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
Aug 14, 2011
Private Sub Table1BindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Table1BindingNavigatorSaveItem.Click
Dim dg As DialogResult = MessageBox.Show("Would you like to continue saving your changes?", "Save Changes?", MessageBoxButtons.YesNo)
[Code]....
View 5 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
Mar 9, 2009
rewriting a class I use for saving Treeview data to a XML file for use of saving ListView data I can't really figure out the rewrite, I'm stucked, unfortunately Listviews seems to be a big problem for me in general.
Option Strict On
''' <summary>
''' The TreeViewDataAccess class allows the nodes within a TreeView to be
''' persisted to xml for later retrevial.
''' </summary>
[Code]....
View 9 Replies
Feb 12, 2012
Currently I am saving data from my applications by saving a text file via a stream reader as a string. I have come to a problem. In my current application, I have an array of the following structure:
[Code]...
View 7 Replies
Sep 19, 2010
I need to control a device with a GPIB port. I have the commands that I need to use to do this; but I don't know which is the sintaxis in Visual Basic.
For example if I need to send a instruction like "START:0.01" to the external device which are the libraries that I have to include?, how should I write the programming line to do this?
The main tasks that I need to program are sending data, receiving data, and saving data
View 5 Replies
Jun 6, 2012
i was working a program that has two forms. first form1 has a datagridview for viewing. with a button ADD and SAVE and disregardchanges.then when i click add another form2 with textboxes to input data. with buttons ADDTODATA, ADDANOTHER and CLOSE when i click ADDTODATA the data will add to datagridview in form 1 and when i click ADDANOTHER i also input another add ADD to datagridview to view.and when i get back to form 1 i have a choice if i will SAVE ot DISREGARDCHANGES. if i click save all data will save.
I used this code in adding data to table.
Dim dsNewRow As DataRow
dsNewRow = ds2.Tables("NewEmpChildren").NewRow()
dsNewRow.Item("dbIDNo") = txtIDNo.Text
[code]....
but nothing changes. it seems that my connection is close when i close form2. how can i make my connection still open when i close form two or any code that will substitute with my code. im a student and this is for my project.
View 3 Replies
Mar 11, 2012
I have been trying for a good while to save the forms icon(the one shown in the taskbar & such to a file...using such code as Me.Icon.Save(stream) & writing the stream to disk for example but every time I do there is a loss of color information it seems, maybe due to not using 32-bit color or lossless color or something...by what I see online it only uses 24-bit color or something.?Not sure what the problem is specifically but the point is there is a loss of color information.if I use Me.Icon.ToBitmap.Save() it works & saves right but it saves as type .png by default, regardless of the extension & not an actual icon file(.ico) which would be usable in the editor itself as an icon how do I convert it or save it correctly to begin with but without the loss of color information.This is basically a test project to see what I can do & what I still need to work on...and this is apparently one spot but I can't figure out the problem after searching bing, google and a few other search sites and reviewing the top 100 links of each to see if any contain any useful information on how to get this working....
View 9 Replies
Jun 25, 2009
I have many child forms, If I open them many tÃmes it makes higgdly-piggedly.
i want to save names of them to a tool and open them for later.
View 3 Replies
Nov 6, 2009
I was wondering why my code doesn't work - I want to save a picture from a picture box showing a webcam preview.[code]
View 4 Replies
Mar 17, 2009
I'm totally new to the programming area. I'm using VB 2008 and I'm trying to save three textboxes in a text format. I have tried some code but my problem is that I don't want to save always at the same name (test.txt). How can I do it.
Here is the code that I'm using (and probably has lot of mistakes :'( )
Public Class Form1
Const mForm1Name As String = "c:est.txt"
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Form1 As System.IO.StreamWriter
[Code] .....
I understand that the problem is on the top where I've placed Const mForm1Name As String = "c:est.txt", but when I'm taking it out gives back a mistake. Also my form doesn't close when I save.
View 4 Replies
Jun 2, 2010
What I am trying tot achieve is the following:User inputs data in one form that saves to the dataset table no problems. On an edit screen I want the current data saved to appear in this page within all the relevant fields but when saving I want this data to add to the dataset table as an additional line of data so the transaction records are kept.I want to add a new datarow regardless of it saving one change or all 7 changes that are possble.
e.g. Line 1 - user inputs 7 cells of data Line 2 - user amends 2 cells of data Line 3 - user amends 1 cell of data an so on. Unfortunately the terminology for certain items above may not be correct as I am still new to this programming and still on a massive learning curve.At the moment I do not have the code for what I am trying to achieve as I really dont know where to start with it.I am currently able to save the data and have it appear in the "edit" panel however only the cells changed are saved an it overwirtes the initial input.
[code]...
View 2 Replies
May 18, 2010
I'm trying to create a simple Data Grid that will automatically save changes. So far I have a data grid connected to a MS Access 2007 Database that reads the data. I can create new fields in the Data Grid, but I need to program to save the data automatically to the database on update (or on close).
View 6 Replies
Nov 26, 2011
Quite a few threads on passing data from one form to another, but I'm struggling to work out how to share data between the two - back and forth.
For example:
Class1 is a class with 10 string properties
Form1 has 10 labels ("Label1", "Label2" etc) and a [Configure] button.
Form2 has 10 textboxes and a [Apply] button.
I want to load with Form1, and create an instance of Class1. Click the Configure button and load Form2, passing Class1. On Form2 I want to manually fill in the 10 textboxes and hit Apply. The Apply should update the Class1 instance and close the form.
Form1's Label controls should then be updated with the data from the Class1 instance.
I'm fine creating the forms and classes, as well as passing the class into Form2 with a custom Sub New(EmptyClass as Class1) constructor. This gets the empty class into Form2, but how can I get the populated class back to Form1?
As Form1 already exists I don't want to create a new instance with another custom Sub New(PopulatedClass as Class1)
It's also key to be able to use the Form2 multiple times, basically ending up with a Data class being displayed as part of Form1 but updated using Form2? (For example if the Class has already been created and populated with data when it's passed back to Form2 for the second time I would pre-load the Textboxes with the values already in the class).
View 3 Replies
Nov 27, 2011
Am new here and also a beginner in VB. I have created a form with a TabControl and when I click the tab page it creates another TabControl Dynamically. This works fine.I would like to save the form with the newly created TabControl and when I close the form and reload it the new TabControl should still be there.
Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub Form1_Load(ByVal sender As System.Object,
[code]....
View 4 Replies
Apr 12, 2011
I am making a program to organize grainbins in seperate yards.In this program, the grainbins need to be moved around and thier position to be saved when the program is closed. I also need to save information such as backcolour and text.I am specifically referring to GroupBoxes, OvalShapes, Textboxes, Labels, and ComboBoxes.
View 2 Replies
Feb 23, 2012
I am trying to get my project to be able to save the data been input from a user. I have uploaded a screen shot of the dialog I am currently trying to use. You will see that I have got a combobox for member at the top. What I want is when the "new" button gets clicked then I can add the desired information then click "Ok buttton which will then save the information.
I want to be able to select members from the combobox after multiple have been recorded to be able to delete or edit them. I have got as far as "changing" the combobox to a textbox for input purposes. I have tried a few attempts to get it. I am getting "ConfigurationErrorsException was unhandled"
View 2 Replies
Sep 2, 2010
It is my understanding that Visual Basic 6 allowed you to create a standalone .exe file (compile all files into one .exe) with its package and deployment wizard. Does VB 2010 have an equivalent to this? If so, how do I get to it?
View 5 Replies
Feb 16, 2009
I was wondering that when you go and publish your application that you can do it in such away that all the necessery files are there so all you have to do is click on one file and it loads without it installing on the hardrive.
View 3 Replies
Jul 29, 2009
i have create a application. i want to create a .exe file on the desktop without having to go into the project folder then bin folder to open the .exe file. How do i create that kind of standalone .exe file?
i try copy and paste the .exe file on the desktop but there is always having this error <project name> has encountered a problem and needs to close. We are sorry for the convenience.
View 8 Replies
Oct 12, 2011
I need to create a standalone application using Visual Basic 2010 without .ico, .deploy, .manifest files.
how can I create only its *.exe file ?
View 1 Replies
Jan 11, 2012
starting out by making small programs, but all I can do is compile and run.I am desperately looking for a way to turn my program into an executable without any installers, as well as the ability to run on other computers (Programs will be made on a PC with Windows 7, and run on others with 7, Vista, and XP (32 Bit). The program will be x86.
View 3 Replies
May 25, 2012
Apps created using VB.NET requires Dot Net Framework to run on a pc, doesn't it? Is there anyway to create a standalone executable file in VB.NET so that i have to just give the executable only which will run on any system (which has not Dot Net installed) without any setup. What I want to mean is If I copy the executable file and paste it on other pc, it should work.
View 13 Replies
Jan 20, 2009
I am using visual studio 2008 professional. I would like to create a standalone exe. Meaning that the program will run off one file and doesn't need to be installed.
View 14 Replies
Nov 22, 2010
I have two labels in my form with two integer values I need to save these labels in an array and when I load the form again I need the saved data appear in two textboxes.
View 4 Replies
Jan 4, 2010
Does anyone have experience of rapidly translating an access application into a standalone windows application? My current thoughts are to create an SQL database and a gui in c# and vb, or adobe flex 3.As with acces, the GUI would mainly comprise of controls such as radio buttons, combo box (populated from a table), check boxes, text boxes, text areas and data grids. It will also need the ability to create reports as access does.
View 2 Replies
Nov 11, 2009
Well I have a program, and I want to the program works alone at determinate time. I know that I have to create a "standalone executable" proyect or something like that. I really don't know how do this kind of things.
View 2 Replies
Dec 16, 2010
I'm planning to create a standalone problem that triggered by scheduler.When the program is triggered, I would like the program to stay on top all the time, even though user clicks on other programs.
View 4 Replies
Dec 4, 2011
I am trying to make a program that allows me to operate a program while I am not around (kind of like a bot) because I need to move alot of things and do the same motion over and over.
So in my program's settings I have made a form that is transparent that I want to set my working area with (i wont be resizing the form, it's size is "975, 575") and save the forms Top, Left, Bottom, Right positions so I can create a macro for my mouse to click.
how to save a forms position on the screen? So I can use it to set a working area?
I just want to save its current location to 4 variables
View 2 Replies