Prevent The Settings From Being Lost After The User Renames The Executable?
Oct 31, 2009
my settings work, they work great to be exact. But theres a problem, if the user renames the executable to something else, all the settings are lost. Are there anyways to prevent the settings from being lost after the user renames the executable? I'm using My.Settings?
View 7 Replies
ADVERTISEMENT
Dec 2, 2010
I'm working on a project at the moment that relies heavily on the configuration information stored in My.Settings. The problem is, whenever I update the software, it resets the settings. I'm thinking it may have something to do with the way I update the software. I make my changes to the program, then up the version of the application and its setup project (also creating a new Product Code). Afterward, I just run the new install to update the application.
View 4 Replies
Feb 12, 2011
my project uses my.resources + my.settings, + both are working perfectly in debug, but when i move the exe to my desktop, some of the my.settings variables aren't saving. has anyone seen this before? i checked + my project is setup to save settings on exit...
View 1 Replies
Aug 5, 2009
I am rewritting my application to conform to ms standards. We used to save all settings to registry for user settings, servername, size and locations.so we are now saving them into My.Settings app.config the only problem is that each time there is an update clickonce will isntall the newupdate but now all settings are loist and user has to save everything all over again..
I am trying to follow the book here but it seems i keep getting stuck somewhere. registry has worked fine for years but i understand we must move on, but if stuff like this happens then i just wasted a long time converting all code to conform for it to not work..
View 1 Replies
Apr 15, 2011
1. I can't find the file which reflects changes to user settings. This might be because I just can't find it (I can see a bunch of user.config files but they are all empty - weird!), or...
2. I'm not actually saving them when I think I am.
Regarding 2. - do I need to invoke
Is this all I need? And if so, why are my user.configs empty?
View 1 Replies
Apr 9, 2010
I am trying to write a program where a user logs on to the system and then enters predictions for the world cup matches. I have created the login screen which searches the 'users' database for the inputted username and password - it works (kind of) in the fact that users are granted or denied access. After a successful login, however, the system seems to forget who's logged in, therefore any predictions entered cannot be related the the userID of the 'users' table.
Here's the code I have in the 'login' button of the login screen:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim connection As New SqlClient.SqlConnection
Dim command As New SqlClient.SqlCommand
Dim adaptor As New SqlClient.SqlDataAdapter
[Code] .....
View 4 Replies
Jun 29, 2010
how to reset user settings in My.Settings to the default value, because when i checked if the user settings works i have altered the settings so now i want the settings to go back to default, because i am going to distribute the software.
View 1 Replies
Jun 8, 2010
how i can save user settings in vb.net
i have a project with different buttons when a user clicks a button the image of PictureBox1 will change.
i want to save this image that the user has chosen after he closes the application, so it will be displayed in PictureBox1 when loaded.
i am using Microsoft Visual Basic 2010 Express
the languge is VB
View 5 Replies
Dec 30, 2010
I am trying to create a program that renames files to 1 - (however many files are in the folder) and also convert .pngs to .bmps, I had done this but I messed it up a little. I am not that experienced with VB.Net but I am looking to learn so any help would be great. I have tried this myself but as you can see in the code I've gone the wrong way about it.
[code]...
View 2 Replies
Jun 20, 2011
how I can deploy my .NET applicationwithout the user having to install the program.i.e. In VB6, I could just create a executable file which did not require the user to install anything, they would simple run the program.
View 6 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
Jun 5, 2010
I am attempting to create an application in an attempt so it could be run as the user and preserve individual settings, by this what i am trying to achieve is when the application is installed, it is installed once but each user has their own settings saved within their own profile - a bit like Office applications. How could i start with this?
View 8 Replies
Apr 22, 2009
I would need samples/hints on how to progammatically generate executable files after taking custom parameters from the user.I have looked into codedom and I almost got it to work except for the little fact that my application launches the console too and it's meant to be a simple windows form.
View 1 Replies
Apr 14, 2008
I'm trying to save a collection of key/value settings in my application's "user settings" (they're column widths), but while I see no errors, when I run the code (in the IDE) my collection in "My.Settings" is always nothing at startup. I do a "My.Settings.Save" when the application exits, and barring the "serializers not found" errors in the IDE, no other errors occur. When I run my application as an exe, it behaves the same way..
View 7 Replies
Aug 27, 2011
It's probably the most basic of things, but all I can find is how to launch a program, and not with the interactions I desire. Any tips as to the terms to use to search for answers, or links to topics regarding questions similar to mine, would be very appreciated. I have a wealth of info to read through, but I could use your knowledge to save myself time.Here is what I am trying to do:
Use a Button (A) to Launch a Prompt where User Selects Directory Path to an executable Program. The Selection is to be Persistent after the initial selection (saved in a settings file i assume?), and the Selected Path (or just "programname.exe") is to be Displayed in a Text Field (B). Launch Selected and Indicated Program via a Launch Button (C)
View 3 Replies
May 17, 2012
I have a program that outputs a file. I want the user to be able to just double-click the output file and launch the program, just like Word and Excel. In Word for instance, one doesn't necessarily have to open WORD then click on File--> Open and locate another Word doc. He can just go to the folder and open the Word doc. I want to implement the exact scenario in my program.
So far I have tried creating TextFile and added it to the Resources. On FormLoading, I simply I stream-read the Resouce file, but I can't write to the Resource on FormClosing, since the Resource is ReadOnly. Also, the Resource is built & compiled so I suppose you can't add anything to it at run time.How you lunch an output file without launching the Executable program that created it?
View 1 Replies
Jun 1, 2009
I have an executable that I was able to get working on all XP machines by registering all the .dll's associated with it.On Vista, however, I go through the exact same registration process but right when I open the executable it goes to a "WindowsApplication1 has stopped working" dialog. I registered the DLLs in the SysWOW64 folder. I also ran Dependency Walker which came up with IEFrame.dll as flagged, don't know if that is relevant though.
View 6 Replies
Jul 14, 2011
I have a VB.NET project in Visual Studio 2008 that I created a specialized addin for. The addin prompts the user to select a database table, takes a template form class's files, copies them to another directory within the project, and renames the form class within the copied files. It then opens the new form and adds controls to it based on the fields in the database table.
The copying of the template form causes the background compiler to give 'duplicate member' errors, such as "Private Sub InitializeComponents(...) has multiple definitions with identical signatures," even though I renamed the files of the new form and the class name within them. Sometimes these errors go away before the new form is opened, but when they stick around the new form doesn't open correctly, and it throws an error instead. I implemented some code to wait until there are zero errors in the error list before trying to open the new form. This has helped sometimes, but for some reason sometimes the errors don't go away at all until the addin is closed.
How to copy the template form and rename the copy without the background compiler ever noticing duplicate members. If that's not possible, then perhaps someone has an alternative?
Here is my code that copies and renames the template form:
Private Sub CreateDataForm(ByVal tableName As String, ByVal displayName As String) ', ByVal subDataForms As IList(Of Object))
Try
Dim dataFormClassName As String = "frm" & MakeValidName(displayName)
Dim dataFormFileName As String = dataFormClassName & cVBSuffix
[CODE].......................
View 1 Replies
Nov 12, 2011
I'm writing a program on CD Collection. My problem is write a code that prevents a user to enter a CD collection name that is already stored in the filename.txt.
The rest of my program is okay, but the only problem is something do with btnAdd control.
Here's my whole program:
Option Explicit On
Option Strict On
Option Infer Off
[Code].....
View 14 Replies
Jul 13, 2009
i have a form that needs to be maximized in vb.net. i dont want the user to be able to change its size or move it around.
View 5 Replies
Oct 29, 2011
I am writing an application that needs to be running all the time and I don't want the user to be able to close it. I don't want to hide the process from Task Manager. All I need is that when the user tries to terminate the process, he has to enter a password.
View 9 Replies
Jan 7, 2009
I have the following settings:
ControlBox : False
WindowState: Maximized
Because I want the user to have a full screen application that they cannot close without using my Exit menu. The problem is, they can simply grab the title bar of the form and drag it, exposing the desktop!
View 3 Replies
Apr 29, 2010
I have a Textbox in which the user types in a name for a folder to be created. However, Windows does not allow the followin chars:
[Code]...
View 12 Replies
May 27, 2009
i want prevent user order column.i have a datagridview , it has allowuserordercolumns properties and it is set to false. But i didnt see so. i still order column.how can i prevent user ordering column.
View 6 Replies
Sep 20, 2010
can FileSystemWatcher prevent the user to delete a file ?
View 3 Replies
Jun 9, 2011
How can I prevent a single user from logging in to my asp.net website from more than one computer at the same time?I have tried using the application server side state managenment but it is not work properly.
View 1 Replies
Sep 11, 2011
what is code that prevent user to given number less than 8 in the text box. If the user give less then 8 number then message box box will appear which show Minimum Number is 8. Here is my code
Private Sub btnregister_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnregister.Click
If TELEPHONETextBox.Text.Trim.Length = 0 Then
MsgBox("Please Enter Phone Number", MsgBoxStyle.Question)
Me.TELEPHONETextBox.Focus()
[code].....
View 2 Replies
Mar 22, 2009
How do I prevent the user from resizing my program during run-time? I know how to disable the max and min buttons at the top, but I can still click the edge and drag it to resize my program. I want to be able to disable this feature so my program stays the same size the whole time.
View 2 Replies
May 5, 2010
Preferably without turning the "Enabled" property to false, because I still need to output text from it.
I made a custom control in which there is a textbox but I want it used only as an output control, for showing text and stuff. Problem is that as soon as my form opens up the focus is turned to the textbox and I cannot catch my keyboard events on the form anymore(since the other controls are pictureboxes). I need a way to make this box "unclickable" or any way in which it is impossible to attribute the focus.[url]...
View 4 Replies
Mar 15, 2012
I have developed an application in VB.NET. It has 20 forms. All 20 can be opened from a menu strip control. The user should be able to open only one form at a time. How might
View 3 Replies