Change Path To Save Mysettings?
Apr 15, 2010
I am using mysettings to save user settings.
This config file is saved in this path:
c: Documents and
Settings [Local
Settings] Application
Data\
Is possible to change this path? For example, in my case I save app data in "ProgramData" folder (Vista & W7) and I would like save this config file in the same folder.
View 1 Replies
ADVERTISEMENT
Dec 23, 2010
Private Sub SaveButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles SaveButton.Click
Dim Config As Configuration
Dim Section As ConnectionStringsSection
[code]....
View 4 Replies
Jun 15, 2009
Well currently I'm needing to store various settings, strings, integers, items, etc, within the program settings. So far this has gone without a snag and is working as planned except for one thing, Comboboxes. I have browsed through the various types of settings I can save to and the closest is a "System.Collection.Specialized.StringCollection", however VB is throwing up an error saying that:
Quote:
Error1Value of type 'System.Windows.Forms.ComboBox.ObjectCollection' cannot be converted to 'System.Collections.Specialized.StringCollection'.C:UsersUserAppDataLocalTemporary ProjectsProjectForm1.vb1234Project
How would I go about saving the items in a Combobox?
View 6 Replies
Jun 11, 2011
i want save image in directory path and also save path in database...sqlserver 2005 and retrieve in in same folder and path?
View 1 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
Apr 9, 2010
Is it possible to use FileSave to save a richTextBoxs content with a fixed save path, without needing to go thru the save dialogue to select save location.
View 4 Replies
Nov 25, 2009
I have one project and in this project I want to save picture to application path and save the path to database as string and retrieve the image from the application path.Can u give me some idea about it..i am using vb.net as frontend and ms access database
View 1 Replies
Feb 17, 2012
My.settings Properties are Read-Only. How can these be updated in program code?
View 4 Replies
Nov 5, 2009
I want to store a 2-dimensional array with 5 columns and indefinite rows in My.MySettings. I've tried to use a Class with an item list (list(of T)) but also a StringCollection.
View 15 Replies
Feb 15, 2012
I have two combobox in a form: Cb1 and Cb2
When I load the form, Cb1 and Cb2 are connected to a bindingsource.
When I change Cb1, the code (below) changes Cb2 to show only the items according to Cb1
This is working fine.
The problem is when I change Cb1 , change Cb2 and click the save button..... Cb2 seems to be 'lost'...
I'm using VS2008.
CODE:
View 4 Replies
May 19, 2010
I've been tortured with this question for few days. As I understood, you could put some of form's properties to mysettings, actually binding them with some named values as strings.It's not very hard, and it was well documented. I tried it and it works fine.Only, not all properties are offered to be bound with mysettings, only some of them. For example, you could bind starting position and windowstate, close your application, and when you open it again, it will open the same window on the same place on the
View 4 Replies
Oct 20, 2011
I have a connectionstring in MySettings which all my datasets use. The project has three copies of the same database: LIVE, WHATIF and TEST. I need to have a dialog in my startup that asks the user which db they want to use and then I thought I could amend MySettings.Connection string dynamically. Hey-ho it's read-only! Is there any other approach I can use where I change a connection string once and all my datasets will then point to the selected db?
View 3 Replies
Oct 27, 2011
I am trying to save a path to my settings, it just dont want to work.
Private Sub BulletPathButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BulletPathButton.Click
Dim OpenFileDialog As New OpenFileDialog
If OpenFileDialog.ShowDialog = Windows.Forms.DialogResult.OK Then
[code].....
View 9 Replies
Apr 22, 2010
I have defined a StringCollection in the Project Settings.I want to use the values in a ComboBox.Is there a way to access it xamly?
I tried:
<CollectionViewSource Source="{x:Static src:MySettings.Default.MyCollection}" />
<CollectionViewSource
[code]....
View 2 Replies
Nov 14, 2011
It appears that when you access My.Settings.Default in VB.NET, your thread's CurrentPrincipal changes. Consider the following code.
[Code]...
Is this expected? Is it documented anywhere? I couldn't find any references to it.It also seems to only do this the first time My.MySettings.Default is accessed, which means that a workaround might be to touch the property to initialize it before attempting to set the thread's CurrentPrincipal. Would there be any undesirable side effects to doing that?
View 1 Replies
May 18, 2012
i'm Uploading files to my pc waht i want is to know how to save tha path of the files to my database and use the path to download the files
View 4 Replies
Aug 18, 2010
I use the code below to save a textfile to a directory that should work like this[code]...
View 1 Replies
Nov 10, 2010
how to Save image path in Database using Vb.net?
View 1 Replies
Nov 17, 2009
I am using access database as backend and vb.net with DevExpress as Frontend and i want to save image at Application path and retrive it.
View 1 Replies
Jun 11, 2011
I'am using vb.net and MySQL as database. How do I save the image path to mysql database. So later when the customer list form when I select a customer and so appear on the customer edit form automatically direct the picture appears too
View 1 Replies
Mar 11, 2010
how to set destination directory path to save file
View 4 Replies
Oct 30, 2009
So, im using streamwriter and i want to create a folder and then save the text file in that folder.Here is the code im using right now.Imports System Imports System.IO Public Class Form1 Dim nr As Integer = 0
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Using sw As StreamWriter = New StreamWriter(DateAndTime.Now.ToShortDateString & ".txt")Add some text to the file.
[Code]...
View 10 Replies
Aug 28, 2011
In VB.NET (2008 Pro) how would I be able to change the path of a folder to represent the recycle bin or printer folder, control panel etc.I have seen it before in VB6 (code below) where the user was able to select a windows path and it set the folder to that path, and also, changed the icon to that particular folder. [code]
View 4 Replies
Dec 4, 2011
I am trying to upload and convert video files then retrieve the filepath. I successfully managed to upload and save the filepath, but I am trying to add the converting functionality. The code I have so far is below.
Protected Sub btnUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnConfirm.Click
If IsPostBack Then
Dim path As String = Server.MapPath("~/UploadedVideos/")
[code].....
View 1 Replies
Nov 30, 2009
1. I have a button, and registry entries, each tell me what version and where it is located.
Example : (reg path = HKEY_CURRENT_USERSoftwareTNL)
Path = c:program filesmyprogram
Regan = us
The program its launching is called caw.exe. but it requires diffrent locations in a file named realms.*** file to work properly. Basically if Regan = us, do this, else if regan = eu do that, else if regan = tu do this. I need to basicly erase everything in that file and replace it, the file location is located under :
"PATH"/data/en"Regan"/realmlist.***
The PATH and Regan need to be replaced with correct paths.
2. After it has finished modifying the File it saves it and then Launches
Path/caw.exe
View 19 Replies
Jan 7, 2012
I built my programs in VB 2010 using a temporary dataset on my computer.I am not ready to have them address the dataset on the server, but when I call up the dataset to change the path, the full path is light gray and I can not change it.If I delete the dataset, it will ruin all of the forms that automatically populate from the dataset. Is there an easy way to change the full path of a dataset?
View 9 Replies
May 24, 2011
I'm working on my first web service and I'm having a blast doing it. I've got a client that talks to the web service installed on a test server. I'm ready to release the code and I realized that when I created the web reference I gave it a path to the web service. I do not want to hardcode this in my program, so I'm looking for a way to dynamically change the path to the web serivce.
What I've done is --
1. Create a web reference to the Web Service:[URL]
2. Built my client using this web reference
3. ... not sure where to go from here.
Basically, I want to stash a value in the app.config file and, on load, use this URL as the web service. Can someone point me in the right direction? There has to be a property I can modify at run time to point it to a some location.
View 2 Replies
Feb 4, 2010
I am running an exe file to calculate something from an input file. But input file and Calculator.exe should be in the different direcatory other than calling application.[code]because of the calling application path, calculator.exe is not looking own path.How can I free calculator.exe than calling application.
View 6 Replies
Jun 23, 2011
I am working on watermarking image.
In the below code I load the image to the graphics path using resource image and adding text on it. When I add the image through open file dialog it paints on the form with original size but I need to resize it, add it to the PictureBox, add text to it and give zoom and pan options to it and then I need to save with the original size.
When I resize and when save the image I endi up with a small image.
Here is my code:
Imports System.Collections.ObjectModel
Imports System.Drawing.Drawing2D
Public Class Form1
[Code]....
View 1 Replies
Nov 2, 2009
Im wondering why this doesn't work: It sets initialdirectory to directorypath and doesn't traverse into save folder. I've tried it all. Anyone have any ideas of how to get it to work? [Code]
View 4 Replies