I have create a programe using vb and visual studio 2010, my program have a mdi parent ,multi userforms which have textboxes comboboxes databases , modules etc. i want to create a save as button so as to create a file. in this way the user could stop the program at any time without the need to input values at all the necessary fields at once. i think that streamwriter isn;t what i need here so how i do that?
I'm creating a program and i want it to secretly save when the user clicks on save.
In other words, i have made it so that it saves twice. Once for the user to read (like a fancy copy) and another that the program uses to open up the form.
Currently when pushed, 2 save dialog boxes come up after each other. I don't want this to happen. I want 1 to come up (the user friendly, fancy version) which is the easy part, but i also want the other 1 to save automatically and secretly without asking the user to set the destination.
I almost have this text editor/Stopwatch/Calculator program done. I am having mojor difficulties to get this code for Save and for Save As to work properly. I do not have code for save yet. When I click on Save I want it to save without popping up the dialog box. I do not have code for Save yet. When I click on Save As I want the popup box to show. Here is the code I have for Save As:
Ok major problem with a paint program i am making. When i have a window overlap or anything and move to side of screen and minimize and maximize i lose whats in the picturebox...Here is an example of the code I use to draw a line after click a button:
Private Sub btndraw_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnlinedraw.Click lxs = txtslinelocationx.Text lxe = txtelinelocationx.Text[code].....
Here is a picture of my program running: How do I stop everything being deleted when things pass it...? how can i add a save feature to this program?
I am currently using vb 2008 and want it so when a user registers it will unlock all the extra features and stay that way even after the user quits and restarts the program... I already have everything set exept for the save feature. I don;t know exactly what to do. I just want to save the settings of my program so that they are the same every time somebody uses the program. I heard that you need to go into Project , then properties and then settings... But I don't understand what to do there...
When I run my program and save my file and name it "Ed's doc". It saves fine. But the title still says untitled, I would like it to say Ed's doc in this example.This is the code I have for my SaveAs button:
Private Sub SaveAsToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveAsToolStripMenuItem.Click Dim Save As New SaveFileDialog() Dim myStreamWriter As System.IO.StreamWriter
I've created an organizer for myself that consists of a few forms, comboboxes, and textboxes. How do I save EVERYTHING as one file. Once I've saved the file, how do I make it so that when I click the saved file, my full program loads up with the forms and everything?
I have a form with a listbox. I have controls on the form that can add items to the listbox with the click of a button. I already have the save file, open file dialogs working properly but I want to add something else that works with them. Lets say I open a file and the listbox adds all the strings from the file. Now, lets say I add something to the listbox and instead of saving the file, I just close the whole form. How do I make my program ask if i want to save the changes to the file when it is about to be closed? (I only want it to ask that IF there are changes to the file).
I have a default WindowsApplication1. I understand that with .NET the recommended way to save program settings are to use XML files instead of the registry.In this application I have a menu with a "Settings" entry, that opens a window which has 1 setting"Save window position", and a checkbox
I have a button on my form and when clicked I want to show the save dialog box but I want to have a filter so the file saved can only be .txt also I want to change the default location of the save as dialog, is this possible?
So far I have the following Dim filesaveas As New SaveFileDialog filesaveas.Filter = "Text Files|*.txt" filesaveas.Filter = "C:\Test\"
I'm trying to save data from textboxes in visual studio using vb.net to sql server 2008. the coonectiong is working perfectly but is not displaying the data output in data grid. This is the part of the code.[code]...
I'm trying to create an app launcher in vb.net but I do not know how to save files. Save files like the one that is executed when you run a setup for an application wherein the setup will save the application files on program files folder. I'm not trying to create a vb.net setup, because I want to run my program as portable. What I want the program to do is to place the files in their appropriate location when the user clicks a button[code]...
I want to save settings in my program as follows. I have an import button to open files. How can I make it so when I start up my program next time, they are already "imported" as a setting or something? *Note - I have not tryed anything as I do not have the slightest clue how.
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]...
I have a problem with saving images in Access. OK the problem is: I saving for first a picture without problems, but then I want to change it for instance "I don't like this image and I want to change another one". Access doesn't want to save second image... and I don't understand way! Code is OK I think because it saved one image. I can change the previous image only if I closing the program and I start it again.[code]...
What would be the best way to save configuration of a program? for example lets say you have a checkbox and does whatever and you check it and start the program and it should be check or unchecked depending on the setting used.
I've noticed that when I save a newly scripted program and attempt to open it after I close Visual Studio 2008, it no longer shows the layout/design of the program...how would I go about configuring it so it looks the same as before I closed visual studio?
In my Tools/Options box under Projects and Solutions/Build and Run, I have selected: Before building: to "Don't save any Changes."However, after making changes to a form, I would like to run it without saving, but I get a message that forces me to save, unless it runs the version of the program before the changes were made.The VB 2005 edition works the way I want it to allow testing without saving, but VB2008 does not allow this.Is there any way I can change this behavior?
Im new to VB and am working on a program for work using functionality to replace the use of hyperterminal and excel macros to dump data from a plc to a spreadsheet. I have the program setup and dumping the data to a rich text field, but this is about as far as my experience will let me go. So here are my questions:
1. Im wondering if it would be possible to use the text parsing method to sort the data into fields by first using a comma to delimit the fields and then tab (not sure how to put it as a character) to start a new line. this will then be displayed in a data grid view and later form there dumped to an excel file. i was also looking at the serial port functionality to see if it could parse too, what would be the best way to go about this?
2. I also need to be able to open more than one instance of my program and load connection settings into it (like what can be done with hyperterminal). Im wondering if it would be possible to use the save dialog to allow the user to save the settings to a file and open the settings file when launching any given instance?
To save data to your program using My.Settings. To do this go to your program's properties and to Settings. Create your variables there and to access them, here's an example:
I coded a small application in VB Express 2010 and I wish any one could provide for me some code on how to save personal settings from an options form so that the end user don't have to keep making their personal choices every time that start my application that I created.
Personally I don't have a clue on how to accomplish this feature with in VB Express 2010.
I used check boxes and radio buttons in the options section on a form for the end users choices.
I have created a bunch of user settings using my.settings.*** and only save these upon form_closing for the time being.I wanted to save the settings every 30 or so seconds, so I created a timer with 30 second tick intervals. Inside the tick event of that timer I included the code that I had in the form_closing event.While it works to save the settings, it also 'freezes' or 'skips' the main program for about a second or 2 while it's saving. The code to save settings includes looping through at least 2 arrays and adding them to the settings specialcollection object one item at a time.Is there a better way to accomplish this, without 'locking' up the main form for a second or so? Is it feasible to loop through all the settings in a different thread (can you access settings cross-thread)?
I mean, I want my program to take screenshots and i want it to count the number of pictures forever. Just like any Digital Still camera you know? Even when you format it, if you've took 2000 pics, the name of the first pic you take after formatting it "DSC2001"