Save The Form Settings Like A Save State Of The Form
Sep 17, 2010
I need to save the form settings, like a save state of the form. Because the program allows the user to add controls. I would like to be able to save them and load them. BTW: The controls are Panels and Labels. BUT! The Panels are a modified version of the control, known as NewComp. This simply allows the user to drag the panel around the form.
View 11 Replies
ADVERTISEMENT
Apr 23, 2009
I need to save some settings before closing the form (by default this happens after..) I have tried my.Settings.Save() but it didn't work (what's this method for then ?)
View 1 Replies
Jan 13, 2009
how to get the form to save some data, but the problem is I only know how to get it to save as the body. since the main parts of the program are third party, but here is the code I'm using to save data.
Private Sub Initialize()
' cmbLabel shows group(student) level
cmbLabel.DataSource = _schedule.DataStorage.LabelStorage.Labels
[Code]....
Since I have them all saving to the "body", whatever the last box is in the code is what shows for all three once I click save.
View 16 Replies
Jun 9, 2011
I need to make a save button. The user will work in main form. User also has Settings in the MenuStrip, when the user clicks Settings a new form will open. There user has ability to make changes that will affect the Main form. This is the code:
If CheckBox1.Checked = True Then
bib.Panel2.Hide()
End If
This is the change that the user will be able to do that will affect the Main form, but I'm not really sure how to make that the CheckBox1 will be saved when the user clicks it and the clicks OK button. I also want to know how to make a cancel button.
View 8 Replies
Apr 25, 2009
Im using 2 forms
How Would i make a login form that will save my data to form 2 like i sign into form1 and it saves like my username/email and password from form1 to form2
View 3 Replies
Jul 5, 2010
I have a form in visual basic 2008 in design view. how do i use a button to save the form i am working on, and then open a new form, I think the code is something like this!
Private
Sub Button2_Click(ByVal
sender As System.Object,
ByVal e
As System.EventArgs)
[CODE]...
But how do i open form2 and close form1 Using the same button. the code Below does not work (Why?)
Private
Sub Button2_Click(ByVal
sender As System.Object,
ByVal e
[CODE]...
View 10 Replies
Jan 15, 2009
I finally figured out how to get the form to save some data, but the problem is I only know how to get it to save as the body. here is the code I'm using to save data. [Code] Since I have them all saving to the "body", whatever the last box is in the code is what shows for all three once I click save. Does any of that make sense? How can i get all 12 of my text boxes to save to the form so that when I click save and then re-open it, they're all populated? Should I use the .Tag property (don't know how) or assign the data to an array somehow?
View 8 Replies
Jan 14, 2009
I just wondered if you can or can't save arrays using the settings system object. There seems to be no way of entering it at designtime. It seems implied you cannot create new user settings.subobjects at runtime. I'm looking to find the easiest way to save a populated array of PictureBox's. If the only way is a self/custom made/managed .ini file then I need to know so i can start on that but I was hoping to use some of all this phaff in the new frameworks usefully.
View 3 Replies
Feb 8, 2008
i have created a user setting named 'setmeup' as string, scope = user, value = "magical meow meow!".in my code i access it and assign it a new value like this...my.settings.setmeup = "howdy cowboy!"my.settings.save()application.restart()when the application restarts, i expect the my.settings.setmeup = "howdy cowboy!" but when i check its contents its still "magical meow meow!".but when i use application.exit() instead of application.restart() and manually restart the program, my.settings.setmeup = "howdy cowboy!" which is correct.what must i do? i want to use application.restart() because i don't want the users to double-click the icon again to start the program. i want the program to restart automatically.
View 2 Replies
Mar 25, 2011
I'm working with an Treeview and i'm new at it and i have 2 questions.
1. How can i save the treeview items, to settings (my.settings.history)
2. How can i save the treeview items as an TXT or XML file or another exception.
View 13 Replies
Feb 8, 2010
I am making a program for my workplace. The program is going to close explorer.exe on start up and launch only applications i select. (I know that there are other ways to do this, but I'm getting paid to make a custom program W/ Co. Logo)
1st question: How do i make the program close explorer.exe on start up
2nd question: End users will be able to change the background of this app. My question is, How do i save the background the end user pick on program exit and load it on program start? [code]...
View 2 Replies
Jan 6, 2009
I have a scheduling program here that shows you a calendar and let's you double click a time to open another form where you input the meeting information. When I click save it saves the person's name to the calendar view, but no details when I double click the entry again. What would be the best method of getting the other fields to save so they're there when I double click? Should I just somehow assign them to strings and return them in the right text box or would I need an array?
EDIT: Actually there is a database involved so I guess I have to get it to store the info in there first.
View 10 Replies
Jan 30, 2012
I created an ASP Table Control and added a row to it programatically. I then repeated the process to add another row. The first row that I added disappeared and only the newest row is being displayed. Is there a property that needs to be set to allow the state of the table to be saved?EDIT:All I do is click a button on the page and it adds a row to the table. Repeated clicks of the button only add one from to the table., here is the function that adds the rows.
Protected Sub addItemButton(sender As Object, e As EventArgs)
'get the id of the item they selected
Dim id As String = CType(sender, Button).Text
[code]....
View 1 Replies
Apr 1, 2010
I need a form width a checkbox "Don't show this again" for my winform, but how can i make this so when my Form1 loads it checks the state of the checkbox using the getsettings option?
How can is save the checkbox state to the registry? and how do i get the state?
If Form2.Checkbox.checked = Getsettings() Then
Form2.showdialog
Else
Goto Skip
End IF
View 2 Replies
Apr 20, 2009
Is there any way to save a form window state including all of the controls etc that it has on it in their current state? I'm having to write long functions for each control just to save and reload from a config file, so I'm spending more time on user saved settings than on my actual project.
View 3 Replies
Sep 25, 2011
I want to create a "Project file" feature. so the user can resume their work right from they left off.Let say I have object Car and that object have some properties. How do I save this properties using xml so I can load it again later?The tricky part is I have many Car object, not only one, and they all have the same variable name. I dont know how it works but it was setup like that.so when the user click save project my program will save all the Car properties and when the user resume their work everything is will be the exact same thing from they left off. So they dont have to start from scratch.Here is the code when the user click the Create Car button[code]....
View 4 Replies
Mar 23, 2012
What is the best way to save the state of a program. Maybe that is not the right way to describe it but, what I mean is almost any application you can input a whole bunch of data make selections and choices and then save these in files unique to the application your working with.
For the time being I will ask my question in term of VB.NET since it is what I am currently working with. I understand the use of the stream writer to write data to a file (any file extension can be used even your own made up one) and then you can later open the file with the stream reader and load the saved application state. At least that is what I know how to do. Are there other ways to approach saving the state? In my case I have a dictionary that is defined through user input to store a lot of data and I am trying to find the best way to save the dictionary so I can load it again.
View 2 Replies
Mar 25, 2011
On the form that i have there is a listview with checkboxes enabled it all works fine but when i close and reopen the form all the previous checked checkboxes are uncheched . Is there a way to save the state of the checkboxes and on form load to restore them ?
View 5 Replies
Jun 21, 2012
I have a form and a module. The form opens and then closes and opens another form. I want to save the form name befor it closes and on the form load event i have this[code]...
View 11 Replies
Jan 31, 2006
How can you save a form in VB?
View 3 Replies
Apr 21, 2009
I have a form, and I have around 50 Textboxes in it. I wanted to know, that when I code my save, if there is any code so that the WHOLE form is saved as it is, so after I publish it, the user opens this application, puts in the required info, he saves it, then when he comes back to it, he should find all the info still there.
View 11 Replies
May 30, 2010
I have googled, but i cant find anything useful about saving changes done in a PropertyGrid. i only figured out that i'm going to use xml. Here is how to save the size of the form.
View 14 Replies
Apr 19, 2010
I have a form (Form A) which collects data from other forms.
Form A is a certificate, how do I with a button click save this form to file (Form A - certificate)?
When it is saved to file, eg; c-drive, AMSFT (root foder), RNFT 5 Certificates (sub-folder), then the form saved in this sub-folder under the name of eg; textbox5.text?
View 8 Replies
Apr 22, 2011
I'm making a program and I want the program to save a form as an executable file(.exe). Is this possible?
View 9 Replies
Mar 29, 2010
i am working on dynamic Cheque printing, i made a form with moving controls at runtime. user arrange controls acc to his cheque or cheques, now i want to save so that user print cheque again and again from once made setting.
View 1 Replies
Feb 17, 2009
I have a form with a group of text/cbo boxes, and two listview controls. I would like to save these textboxes and listviews into a single xml doc with a schema like[code]...
View 1 Replies
Sep 2, 2009
I am trying to develope a icon extractor program..
I've coded all the function exept the save as .ico ...
My Code works 50% The saved file color get mixed up, just like if you take a picture on a Camra with a negative function.[code]...
View 2 Replies
Mar 30, 2010
is there a possibility to save a complete form including Dataviewgrids and everything to a screen or a PDF?
View 6 Replies
May 2, 2012
Form 1 code
Me.Validate()
Me. CustomersBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.BoardingschoolDataSet)
[code]....
Therefore that code above works perfectly as both of them saves information to the Customers table and waitingforApproval.The problem is here:When I open form2 which recieves information from WaitinforApproval database table(and I see it getting it from there as tableadapter works), I want to save the received information to the customers.So I have two data sets in here. Just like above So here I have created a button called confirm/save the data to customers. Hence I put this code in confirm button:
Form 2 code
Me.Validate()
Me. CustomersBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.BoardingschoolDataSet)
And the current dataset set for this form is �waitingforApproval.So it doesn�t save the received information from waitingforApproval into the customers�
View 2 Replies
Jul 26, 2011
how do I save pictures in a SQL Database via a Visual Basic Form? Each picture would be assigned to a unique number (example identity number)
View 4 Replies