Save/restore A Form And Controls Between Program Runs?
Jul 7, 2010
I have a complex form to allow the user to configure my app.
What's the best way to save the form state & reload when the program next runs.
I mean text he has entered in list boxes, the selected item of combo/list/radio, whether a checkbox is cheeked, etc
View 6 Replies
ADVERTISEMENT
Aug 22, 2010
I experience very strange behaviour of a windows form written in VB.NET 2005.
The form contais DataGridView with data.
I minimize the form to Windows task bar, then I restore it. The form appears, but the DataGridView and other controls are not displayed. In order recover from this situation, I need to resize the form or maximize it.
View 3 Replies
Nov 9, 2009
I am creating a very simple game for a project. There is opportunity for bonus marks, and one thing I would like to do is be able to "save" the game. The only thing I need to do is save about 4 variables to be recalled the next time the program runs.
What is the best way to do this?
I have searched Google, and there are ways to link the program to an Access database, but that seams a little extreme. I tried seeing if you can make an XML file to hold them, but I can't really find any good information.
View 8 Replies
Dec 15, 2011
I have a search page in one form(Search.vb) and another form(Form1.vb) to display the details of selected data from the search form.
I already have back button in Form1.vb which returns to some other form say (Action.vb).
In case of searching data it returns to Form1 to modify the selected data, In this case if i press the back button in Form1.vb it should return to search.vb with the details that i entered for searching.
Is there any way to save and restore the form whenever needed with its details?
View 13 Replies
Aug 12, 2011
I've created a form with a PictureBox on it and would like to dynamically create another PictureBox on the form while the program runs (to the left of the static one). I've written this code:
Dim temp As PictureBox
temp = New PictureBox
temp.Image = StaticPictureBox.Image
temp.Visible = True
[code]....
When I run this code I can detect that the temp PictureBox does get created. However, it is not rendered onto the form. It seems like it's there but is invisible.
View 8 Replies
May 12, 2012
I have a form which has a ListView and buttons to add/edit/delete items from this list. It has a save & a cancel button. On pressing the cancel button, I want to revert all the changes that have been done in the current form. So, while loading the form I keep a copy of the original list like below.
backupMyListView = MyListView
In the cancel button code, I do the opposite.
MyListView = refMyListView
Whats happening is that, the original listview is never restored because everytime MyListView was updated, backupMyListView also was getting updated.
How do I restore the original ListView on pressing the cancel button?
View 3 Replies
May 23, 2010
I have an application that has a part of it that modifies several windows services. When the form loads it checks the registry for the current status of the services.
What I would like to do is have it so that the application takes a snapshot of all the defined services when it is first installed and stores the defined settings for each of them. This way the services can be restored at a later time to there original settines. I would also like to make it so that a custom settings file can be created so that this custom configuration could be loaded which contains changes. The result would be the first file made would allow everything to be reset prior to any changes the second file would contain all the setting changes.
View 20 Replies
Mar 8, 2012
Im having some trouble saving and restoring a TrackBars value to my settings.First of all, this trackbar is controlling a WMP components volume.. That works fine, no problems here, i can control the volume with no problems with this
Private Sub TrackBar1_Scroll(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TrackBar1.Scroll Volume.Text = TrackBar1.Value Form1.RadioPlayer.settings.volume = TrackBar1.Value
End Sub
What i want to be able to is for the application to save the value the Trackbar has been set to, when the application closes and the restore that value when it is launched again. And for this i use Application Settings.
[Code]...
View 7 Replies
Jun 15, 2011
I have a utiility that users can re-order DataGridView Columns in to their hearts content. I want them to be able to create a named list so they can have multiple Column Patterns to choose from.When I restore though the re-ordered Columns are not where I saved them.
View 1 Replies
Dec 28, 2011
I have developed an application on my phone to manage my money. I would like to create an application on my pc to get the local database from my winphone to be able to display informations... and have a backup. I would also like to be able to restore my data back to my winphone if there is a crash.
View 4 Replies
Jun 6, 2011
I have created an VB.NET page to record views for ads and will call page from img src.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Dim insert_number As Integer = 0
Dim ad_id As Integer = 0
[Code].....
View 2 Replies
Apr 8, 2009
How can i print a form with all controls in vb.net?
View 5 Replies
Oct 13, 2011
I'd like to know how to restore my database in visual basic. the code i used for backing up is[code]...
View 2 Replies
Nov 25, 2009
Here is my code that is use to restore mysql database using vb.net
but it is not working. i don`t unerstand what happend.[code]...
View 2 Replies
Mar 11, 2010
I'm using VB.NET AND SQL SERVER AND HAD PROBLEM TO RESTORE PREVIOUSLY BACKUP TEXT FILE.
View 4 Replies
Nov 17, 2009
Im trying to restore my program from the system tray using a Contextmenustrip. Ive googled it but can seem to find anything.
View 7 Replies
Jun 10, 2009
when i try to minimize a form and restore to normal the form is being resize.It's resize getting extending a form when time to minimizing a form and restore it.my form is set to formborderstyle is fixedsingle and i'm using namespace. why is hapening like that...i don't know why
View 10 Replies
Jun 17, 2010
[url]..I'm trying to use the Restore.Abort function during an SMO restore process - What would be the best method?
[code]...
View 4 Replies
Apr 30, 2009
i just wanted to make a really simple program to hide/restore programs listed in the taskbar. the hiding part is working, but somehow i cant get the window to show up again ? >< here is the code i am using:
Public Class Form1
Private Declare Function ShowWindow Lib "user32" ( _
ByVal hwnd As Long, _
[Code]....
i've also tried this with a button for show and a button for hide aswell incase SW_HIDE and SW_RESTORE are being used too fast after each other, but same issue.
View 1 Replies
Jun 9, 2010
I got a problem here. How can I let the program run in background when I click the minimize button on the right up corner?While it is running in background, I also wish there will be a small icon shown in the system tray.
View 3 Replies
Apr 21, 2010
1. When the program is running and if i save the data , it gets saved in the db. But when i close the program and again run it the data gets discarded
2. Say first i have saved the info about person 'A', and then When i Save then info of Person 'B', instead of the the details of B the details of A is getting duplicated[code]...
View 2 Replies
Apr 18, 2010
For some reason, I can only run my program at college where I created it. It runs off of E:/ (usb port) so when I take it home, it won't run as at home, my E:/ is a CD Drive. How can I change my program so that it runs off of all drives?
View 4 Replies
Nov 10, 2011
I loaded a Lightswitch program on an XP machine and after load all of the updates it runs fine. I tried to load it on another XP machine with all of the updates loaded and it looks like it installs and it shows up under programs but it looks like it starts to run but then nothing happens, there are no new processes running.
View 1 Replies
Apr 8, 2011
I have made a program that has an intro screen, moving onto an activity select screen which acts as the main interface to get around the program. After creating the program and installing it on my computer, when I close the program from the activity select screen, using the "X" at the top right corner, the program continues to run under "processes" in the task manager.If I close the program from the intro screen though, it will close everything, including the processes. Is there anyway I can get the same to happen with the game select screen? I can make it work by putting my own "End" button on the form, but id prefer to be able to do it with forms own close button.
View 5 Replies
Jun 28, 2010
this is really bothering me, my program seems to run faster whenever I click on some other window so the form doesn't have focus. What is going on and how can I fix this?
Here's the troublesome section:
ListView1.Items.Clear()
'loop through the updates
[code].....
View 2 Replies
Sep 10, 2010
I created a program in MS Visual Web Developer 2010. It has a form that simply launches a script that manipulates a database. The project lives in several files and they are all inherited so they see each other and it accesses a MSSQL Express DB on one of our servers.
When I F5-Run the project locally on my PC it works fabulously. When I copy it to a web-enabled (application) folder on the server it executes but almost my very first line of code fails with this error[code]...
View 1 Replies
Jul 17, 2009
I'm trying to run a program that runs fine on XP OS, but it won't run on Vista. I've tried to install msinet.ocx in the system32 folder, but it never works.I've tried to register with regsvr32 but it gives error I've tried to register with regsvr32 with cmd as administrator it's register the Activex Control but it gives error " Unexpected error "
View 1 Replies
Jul 22, 2010
I would like to know if there is a way to see how long a program runs. I have one that takes a very long time to run, which is not the problem. I start it and go to bed or leave for the day. When I come back it has finished. I do know it takes hours. Is there a way to find out how long it does take to run give or take a couple of minutes?
View 3 Replies
Aug 31, 2011
I am creating a program that has many text boxes and labels on the form. I want to be able to edit fields close the program and open it up so that the form opens with the last editing I did in the fields.
View 1 Replies
May 23, 2011
I want the cursor to change when moving over pictures. Can it be done prorammatically? The solutions offered in the forum do not function. Changing the cursor in the property window of a picture is refused.
View 6 Replies