Save Data In Windows App?
Jan 10, 2011
i have an application that play voices and i need to save all location of files, i mean that i want to create a library and user will insert some address to get the files from there like c:Music and d:music and so on and next time when the user open the application the files will be there.
i need to know in this case what is the best way to save data from user?
View 2 Replies
ADVERTISEMENT
Nov 22, 2010
I wrote the programme with vs2008 and access 2007,i built its setup.when i execute my setup on winxp ,its true,but when i execute it on win 7 ,when i want to save my data i have an error.
View 1 Replies
Jul 1, 2010
We have developed an application using Visual Basic .NET as the front end and Microsoft Access as the back end. If we run the application on Windows XP we can write records to the database but when we run it on Vista it does not write records to the database.
View 2 Replies
Oct 10, 2010
I have two windows vb.net form. I got a text file. I am trying to encrypt some data and save it to a text file with the 1st windows vb.net 2005 form. Now with the second one am trying to decrypt the data and retrieve it here.
View 3 Replies
May 29, 2011
modify code to insert the data to MS SQL and save changes when click save button for the second time?
View 14 Replies
Dec 27, 2010
how to code for the save button in vb.net datagrid view by using insert into sql and update sql statements (it should be able to insert & update the data grid and save the changes) when the save button is clicked .
View 2 Replies
Apr 20, 2010
How to save all the data displayed in DataGridview( 2 column, no primary key) and have a button and
View 7 Replies
Jun 18, 2012
I am working on desktop application. I had created number of dynamic textbox and label and I want to save that data on clicking the save button.
View 4 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
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
May 19, 2011
I've written a very simple program that writes a tiny "config.cfg" (text) file to the computer (using StreamWriter), and a second program that is supposed to read that data back.
Unfortunately, it appears you can't save to the same folder as your program under Win7 ("Program Files (x86)" is a restricted folder.) So instead, VB automatically saves my data to the "C:Users(myname)AppDataRoaming..." folder. This is annoying, but tolerable.
PROBLEM IS: How does my second app then FIND my data file (without doing a time-wasting drive search every time the program is run?)
My code:
' Program #1:
Private Sub cmdSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSave.Click
Dim FileWriter As New StreamWriter("config.cfg")
[Code].....
View 2 Replies
Feb 9, 2011
I am trying to read and save data into a access Database but using the rows and colunms valeu can
View 1 Replies
Jun 13, 2011
I am creating a program which launches a game server. I have combobox in which the user can enter the ip, map, etc, of the game. How can I save what they have entered so that the next time they are already there so they don't have to re-enter them.
View 2 Replies
Mar 28, 2011
I have three tables under one database. I'm using the built-in Navigator control for now until I get this figured out, but I'm using a button command instead of the built in navigator button. I need the "Save" button to save the data in the text fill boxes to save to the corisponding table. I used the drag and drop option to drop rows from each table to the form. See code:
Private
Sub Button1_Click(ByVal
sender As System.Object,
ByVal e
[Code]....
View 3 Replies
Aug 2, 2011
I've created a windows form in VB Express 2005 with lots of combo boxes and print and save buttons.I would like to be able to save the contents of the populated combo boxes, labels etc ie the whole form from the save button, preferably to excel 2003. However, would be just as happy to save it in the form format. The only code behind the save button I have so far is this, which just navigates me to the directory. When I enter a filename and extension, the directory is empty:
Private Sub save_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Save.Click
' Displays a SaveFileDialog so the user can save the file assigned to the Save button.
[code]....
View 6 Replies
Feb 2, 2012
I need to save a form in it user browse image & set it to a PictureBox But on another button I need save that image to SQL Server .I have a stored procedure with Insert Command (with Image Datatype)
Browser Image from Desktop, PictureBox Code :-
Public Sub SelectImage()
With OpenFileDialog1
[Code]...
But When I run the form it gives me error "No mapping exists from object type System.Drawing.Bitmap to a known managed provider native type."
View 1 Replies
May 25, 2011
I am trying to write a code to save and open data that is in my application. My application contains hundreds of text boxes, combo boxes and labels. I have created an array for each set of data, i.e.,
glist(0).store=combobox1.value
glist(0).cat=combobox2.value
glist(0).it=label3.text
glist(0).quan=label4.text
glist(0).total=label5.text
up to glist(89).
Is there a way to write a code to loop through the array and save the values so that they can be opened at a later time in my application? The array will contain Doubles and Strings.
View 4 Replies
Jun 25, 2010
When I call the save dialog object to prompt the user for a new file name, sometimes it does not appear as the active window, it is occasionally popping under all the open windows, and you have to minimize all of them back to the desktop to find it. What sort of problem would cause this, and is there a way to force it to the front?
View 10 Replies
Aug 2, 2011
I've created a windows form with lots of combo boxes and print and save buttons.
I would like to be able to save the contents of the populated combo boxes, labels etc ie the whole form from the save button, preferably to excel 2003. However, would be just as happy to save it in the form format.
The only code behind the save button I have so far is this, which just navigates me to the directory. When I enter a filename and extension, the directory is empty:
Private Sub save_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Save.Click
' Displays a SaveFileDialog so the user can save the file assigned to the Save button.
[Code].....
View 18 Replies
Apr 30, 2012
I have a simple program that runs in the background and when the user presses a certain key will take a printscreen and pop up a save file dialog to save an image. But sometimes the save dialog is not appearing because it loads buried under other pre-existing windows, which have to be minimized in order to find it. Is there any way to force this dialog to be on top?
View 11 Replies
Mar 3, 2010
I have an application that saves some text to a text file as unicode. When I run the application on a US English windows XP everything is fine, but when running on a system with Chinese version of XP, the file is saved as ANSI. Below is a code snippet showing UnicodeEncoding Does anyone know why Chinese Windows would save as ANSI instead of unicode?
Dim info As Byte() = New System.Text.UnicodeEncoding().GetBytes(txtScenDetails.Text)
fs.Write(info, 0, info.Length)
View 1 Replies
Jul 29, 2009
I have a bound windows form with a bindingnavigator control. I want to add save and new record commands to a menustrip. How do I code the menustrip selections?
View 1 Replies
Jul 1, 2011
I'm developing a winform application. I want to take input from user (i.e. the user provides username) and use that input as part of filename and save to file.How do I check if the username provided by the user didn't contain windows' reserved characters. And what is the list of reserved characters for windows?
View 1 Replies
Apr 14, 2012
I'm trying to do the following I'm not sure if it's possible using VB.NET. I want to specify default saving point for all files type for example: In my program you choose the path "C:UsersMarkusPictures" for pictures and everytime you download pictures files from website, or using skype or any other program when Save File Dialog opens up (external one not via my program or connected to vb.net just the windows default one) then it will show "C:UsersMarkusPictures" always for .jpg .gif type of files etc...
View 2 Replies
Feb 11, 2009
Does anyone know how to capture (Record) the Windows desktop and save it as a '.avi' or '.mpg' file. This functionality can be done using screen capture / presentation programs like SnagIT:[URL]..I have found many examples showing how to capture from a webcam using the 'avicap32.dll' DLL file but these dont help with this problem.
If you are asking why i dont just use SnagIT its because the interface is overly complex and building my own version would allow me to intergrate it into my existing programs.
View 8 Replies
Apr 2, 2011
I want to save medical images that means scanned images,x-rays and other medical images , so how to save these images in my project by using vb.net windows application. And my database is Oracle 10g.
View 6 Replies
Sep 28, 2011
I have an excel file that I would like to load into my form and display there.
View 1 Replies
Nov 1, 2010
I can launch Excel with the document I want using VB.Net 2010:
Dim p As New System.Diagnostics.Process
p.StartInfo.FileName = "c: empmyfile.xlsx"
p.Start()
Excel starts OK with the file opened. I edit the file, but when I close it down, Excel doesn't ask if I want to save changes. So it closes and loses my edits.
If I do the same with a text file:
Dim p As New System.Diagnostics.Process
p.StartInfo.FileName = "c: empmyfile.txt"
p.Start()
It opens (in Notepad++), I edit it and close it, and Notepad++ asks if I want to save changes.
I've now tried similar code with a Word document - and that's OK. Also with an OpenOffice Sheet document and that works as well.
This behaviour is happening in Windows 7 with Excel 2010. It works as expected in Windows XP with Excel 2007.
What am I doing wrong with Excel? Is it me?
View 2 Replies
Jun 11, 2011
I am using windows application. in that form i place picturebox, openfiledialogue, loadimage, saveimage buttons.using loadimage button to load image into picture box.using saveimage button to save image into one folder(save image into harddisk)at the time of save image first we crop the image like height:100 and width:100 and next it saved to folder.
View 1 Replies
Mar 21, 2012
I am having trouble in browse & then save an image to SQL Server.ALso I want to retrieve that image.This is the code to browse image & show it in PictureBox1 Control
Public Sub SelectImage()
With OpenFileDialog1
'.InitialDirectory = "C:"
[code]....
But don't know how to pass it to image parameter .Also is there any way that I can save image on Local drive & just save the url /location/name in database?
View 2 Replies