VS 2010 - Creating A Program - To Secretly Save When The User Clicks On Save
Feb 7, 2011
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.
View 39 Replies
ADVERTISEMENT
Mar 5, 2012
if could modify the following code for me so that it save data row by row from a DataGridView into SQl Server. Currently, the code saves data from all rows at time instead of saving only the recently added data in a row or rows when the user clicks a button.[code]...
View 1 Replies
Oct 10, 2011
I am creating an Interactive map which displays the facilities when the user clicks on the Checkbox, such as toilets. It will display all the toilet locations via PictureBoxes. I want to do this without having to write all this code?
Private Sub chkCash_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles chkCash.CheckedChanged
If chkToilet.Checked And RadioButton1.Checked Then
[CODE]...
View 19 Replies
Feb 6, 2012
Im trying to save a file in XML and offer the user a save dialog to appear so they can name the file. The file will save using a custom file extention. The problem is I keep getting off the wall suggestions and Im looking for a simple solution. Here is what I have, please only show examples using my syntax based code. Im still a bit new to Vb so posting off the wall examples
[Code]...
View 10 Replies
Feb 24, 2009
in my form i have 4 textboxes and i want all not to be empty while saving the data.I have put condition in save button,when user presses the save button to save data, to check all the textboxes not to be empty. My question is that, i want to focus to that particular textbox which is empty during saving the data.
For example: i have txt1,txt2,txt3,txt4 as textboxes in the form if txt1 is empty while saving, the focus should switch to txt1 rather user himself have to go there.
View 16 Replies
Jul 9, 2009
I need my application, save the data for each user ... In short, whenever you start the program, it will do a check of these data.I had thought to save the data in an external XML file, but if this file will be deleted? Or use the registry and save the data using a registry key, as many programs (I think) save the activation (SN) of a program...
View 4 Replies
May 5, 2012
is it possible by 1 program to save settings to another program without running the program that is being edited?
View 6 Replies
May 28, 2012
How to save image from webbrowser loaded page to hdd (after loading save to hdd)?
View 2 Replies
Feb 28, 2010
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:
[Code]...
View 6 Replies
Dec 19, 2011
How do you save settings for a DataGridView? I'm making a game, and I want the user to be able to save their settings in a datagridview, and have it opened when he/she looks at the records form again.
I know this is what you do with a textbox, lets say:
My.Settings.Username = TextBox1.Text
My.Settings.Save()
But how would do that with a DataGrid View?
View 8 Replies
Dec 25, 2011
how to save data (for example some text that user type [as password etc]) and save that password on same location where is application. After saving I want to have also Load option so we can load saved data.
View 7 Replies
Jun 4, 2010
Is it possible to save into temp data a user made class? I have a class with many structures and each structure contains variables and im trying to add to my program a way to save the data of that class object with its structures and everything is that possible? I tried manually making some sort of save but its taking too long and proving way too hard for me. Is there a way to just convert it into some general object format and save the object? Is that possible can you just save undefined objects without having to create a format manually for that object?
View 6 Replies
May 9, 2011
I am developing an application that will call to the current user path so that a text file can be saved. I have seen a few forum threads that call to the current user path but I have been unsuccessful in making it work. Id like to try and save a text file, lets say 'test.txt' to 'C:Users(current user)My Documents' [URL] The above link has a way of calling the current user name, but when I publish the application, all it does is call to 'C:UsersMy Documents' and ultimately does not work. I have searched multiple terms and about 20 pages deep into google each time.
View 4 Replies
Dec 21, 2011
So here is where I'm at, I've built a program to organize my programs. I've got the tabs and all of that, everything on it works fine except I have one issue now. Every time I close the program then open it again, any files I've added into it have disappeared so I would have to constantly run this program and if i restart my computer I would have to re-insert the programs into it. I'll include what I have so far in the way of the coding. But I was wondering, how do I get it to remember what I've put into those ListView boxes?
Public Class Form1
' Private Shortcuts As Dictionary(Of String, String)
Dim c As Integer = 0
[Code]....
View 10 Replies
Nov 1, 2010
add save and save as dialogue box options in vb 2010. I've already managed to do loading but i can't figure out how to save.
View 4 Replies
Apr 25, 2011
I've been programming in VB6 for years, I have decided to take the plunge into VB.net and C# 2010 but having a little problem understanding the big picture.In VB6 I could create user controls and save them as .ocx files, then use those .ocx's in other programs or on html pages. I am sure the same idea is present in VS 2010, I'm just not seeing it.Can anyone recommend a book or tutorial that will show me the big picture of all the aspects of the .net environment?
View 2 Replies
Dec 7, 2011
Is there a way that I can record sound, and save it in the program so that it can be replayed?I'm making an alarm clock program, and I thought it would be cool if the user could record his/her own audio, and have it play back for him/her.
View 1 Replies
Apr 2, 2012
I made a simple code that changes the background color for my program and then save it. But for some reason, it will not work if the RGB code has 255 in it.
Public Class Form1
Dim R, G, B As Integer
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
R = TextBoxR.Text
[CODE]........................
View 3 Replies
Oct 5, 2011
how do I do this properly:
vb
Imports System.IO
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[code]....
I would like to store some app data in a 'default system folder', so when I launch the program it will know where to look for it's own settings.As a matter of fact I only need to store there a path to the files used by the program. Users will be able to choose where to put them (simplified installation). The program has to know where to look for them.
Am I creating the folder properly? As you can see I'm referring to C:... The folder structure presented here comes from my laptop running on Windows 7 Ultimate. Maybe the C:... can be somehow defined by some sort of a system 'shortcut'. Following the above example the program would look for those in C:... , but maybe I can use something like ~~ default.app.settings.My Program Name ~~~. How does it work? Have no idea how to call it properly, but I'm sure you will know what I mean.
View 5 Replies
Oct 1, 2011
The code below reads an Icon from an .ico file, converts the Icon read to a Bitmap and saves the bitmap using:
Bitmap.Save(PathA)
Then does:
PanelShowWrittenIconA.BackgroundImage = New Bitmap(PathA)
[code].....
View 2 Replies
Jun 29, 2010
How would I create a "Save File". I am creating a launcher and need it to save the programs and different texts i have on the program to a save file. One side question: How do I do Links in VS?...HyperLinks that is.
View 9 Replies
Apr 23, 2010
I have a notify icon that uses balloons t notify the user of certain events. In some circumstances I would like to open a file or program when the user clicks on the balloon. The default behavior is to close when the user clicks the balloon. How can change this?
View 1 Replies
Oct 13, 2009
How do I go about overriding the default functionality when a user clicks the X in a VB.NET form-based application? I am currently handling the MyBase.Closing event... but since it's a DirectX app, I need to do some cleanup before allowing the form the close.
View 3 Replies
Feb 24, 2010
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
[Code]...
View 5 Replies
Aug 15, 2011
In my application, the user clicks a single button and the program displays each network adapter description into a message box and then gets all the ip info for the workstation and places it into a text file and opens that text for reading. What I would really like for it to do would be to display all the network adapters into a single messagebox instead of messagebox for every adapter like it is currently doing. Here is the code I have on that button. Let me know if anyone needs more info or has any questions:
[Code]...
View 4 Replies
Aug 7, 2009
in vb.net i am trying to save application settings but for USER but i cannot find the user.config file
when does this file get created?
i searched my entire hardrive. i also searched the entire project.
View 2 Replies
Jul 14, 2009
I'm trying to save what the user types in the vb code Dim user as Inputbox("") for example in a .txt file i can save the textbox and listbox but i cnt figure out how to save the inputbox i really need this to be saved the most.
View 7 Replies
Mar 27, 2011
I have been working on this for awhile and I'm completely stuck, I'm making a program for Resident Evil 5 that calculates the times for each level to let the user know how much time needs to be shaved off before the infinite rocket ammo is unlocked. It's mostly just for fun, but I'd like to make it as useful as possible.
[Code]...
View 7 Replies
Nov 29, 2011
I have created a program for making soap. I am having trouble creating a save file for the program. I want to create a txt like string save file.
[Code]....
I'm having trouble now incorporating the breakup of the string using .Split:
[Code]...
I can't seem to find a way to take each instance of oils(i) and then split for which(0) and set field "Txt" + which(0).Text = which(1)
View 5 Replies
Jun 11, 2011
I was developing my own project in the university so what i am stack is to have save button which firstly validates what the user enters the form. for instance if the user skips the text fields, i wanted to restrict the user to fill all the form and when he completes, the save must be accomplished.
Here's the code i was trying to put but i was having problem saying the windows.forms.etc is unable to convert the save as Boolean and something like that.
Dim success As Boolean
Private Sub Save_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Save.Click
[CODE]...
View 5 Replies