VS 2008 User Settings Mystery With VB6 Com Interop?
Oct 14, 2010
This problem has frustrated me to the extent that I am now willing to make a one-time donation of GBP25 to the nominated charity of the person who provides what I consider to be the most helpful answer over the next 24 hours.
Let us say I have a VB 6 SP6 Standard EXE project called VB6EXE.vbp and I am working on this in the VB 6 design-time IDE.VB6EXE.vbp references a compiled VB 6 SP6 DLL project, let us call that VB6DLL.dll VB6DLL.dll references a .tlb which references a compiled VB 2008 library assembly, let's call that VB2008.dll So in abstract terms the arrangement looks something like this:
[Code]...
View 16 Replies
ADVERTISEMENT
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
Dec 12, 2009
Okay so i have a problem with saving the users settings. Okay i have about 50 check boxes on my frm1.So for example if the user clicks on check boxes 1 and 2 the next time when the user starts the program i want check box 1 and 2 to be checked
[Code]...
View 15 Replies
Dec 6, 2011
I am not sure what the heck I am doing wrong. I would like if when the user selects no, then the app setting is nothing. By nothing I mean nothing, I am using "Nothing" to test but its not working it returns whatever is in the richtextbox
This is in my formclosing event
Dim msg As String = "Do you want to save your comments?"
MessageBox.Show(msg, "Save", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
If DialogResult = Windows.Forms.DialogResult.Yes Then
[CODE]...
View 2 Replies
Feb 16, 2010
I need to save some string settings at runtime and read them back. They will need to be changed at anytime during runtime also. The examples I have found says they are obsolete for vs2008. how to save and read some string settings? I found alot for the application settings that to me are ones you set once for the app like in an asp.net site. I need to change these anytime like you would in a registry.
View 10 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
Jan 3, 2011
I've got a VB .NET application that has an auto-updater that updates the exe and manifest files of the application when it finds a new version. For some reason when I update those 2 files, it also clears the user settings, even though Im not replacing the exe.config file.
View 5 Replies
Jul 16, 2009
I know that when using my.settings that when I exit my app that it saves them and then next reload it imports my.settings back.
My question, is there a way to create this user.config file on the apps first load?
View 3 Replies
Aug 10, 2010
I know similar questions have been asked/answered, but after looking across the net for 2 days I still haven't really seen an answer to the following question.rst, background info: My application starts at windows start as a user checkbox option (by using the run key in the registry.) I don't know if it is usual or not, but when the app auto starts on windows start, no saved user settings show up on the form (but they do when starting the program manually after windows is already running). I've tried both HKEY_CURRENT_USER and HKEY_LOCAL_MACHINE. In case anyone needs or wants it, my code for accessing the registry is:
Dim Reg As Object
Reg = CreateObject("Wscript.shell")
Reg.RegWrite("HKEY_CURRENT_USERSOFTWAREMICROSOFTWINDOWSCURRENTVERSIONRUN" &
[code].....
View 4 Replies
Jan 3, 2011
I have a textbox in my program which refers to the user specified path. Everytime the program is started it retrieve the setting :
Private Sub frmmain_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If My.Settings.path <> "" And My.Computer.FileSystem.DirectoryExists(My.Settings.path) = True Then
txtpath.Text = My.Settings.path
ElseIf My.Settings.path = "" Then
When I try the program on my own system there is no problem. But the customers said that everytime they start the program the messagebox popups and they have to choose the path again and again.
View 3 Replies
Dec 27, 2009
What is the correct way to handle saving user control settings on form close. I have a tabcontrol that a user can add tabpages during runtime. The user control has a few controls (listbox,combobox,textbox) How can I save the created tabpages and the data in each control in the usercontrol? Below is how I am calling my usercontrol
Code
Public Class TabPageEx
Inherits System.Windows.Forms.TabPage
[code]....
I seem to be a little lost as most documentation seems to suggest that I can not save usercontrol settings in the app.config. I have played around with the solution expl. settings tab without much success. But, then again I may be going about it all wrong. So, I am looking for a little direction on the best way to handle this on form close.
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
Nov 4, 2010
I am using the Interop User Control Toolkit to create a user control for use in a VBA Forms "like" environment. I created a user control and it worked just fine in the environment. The problem that I have is that I get an activex warning upon form load. I need to get rid of this message. I have tried this link with no luck... Although everything compiled file, it crashed my VBAClnt.
View 1 Replies
Aug 29, 2009
On the subject of the AxWindowsMediaPlayer.URL property, MSDN warns:Quote:Originally Posted by MSDN
View 3 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
Apr 12, 2010
In the below code, I create a DataTable and filter it. When I use filter1, everything works as expected.When I use filter2, everything works as expected only if the SubsectionAmount variable is less than 10. As soon as I set SubsectionAmount=10, the dr2 array returns Nothing.I can't find what is wrong. Here is the code:
Imports System.Data
Partial Class FilterTest
Inherits System.Web.UI.Page[code]..
View 2 Replies
May 22, 2012
I have this code:
[Code]...
EDIT: CELL_VALUE_FLOAT is a Nullable(Of Double) and CELL_VALUE_INT is a Nullable(of Integer) In Quickwatch the condition evaluates correclty to False, but when running the If() function evaluates to the True part.
View 3 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 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
Feb 17, 2012
I have the interesting task of doing some graphs using VB.NET. So far, everything that I´ve been reading about GDI+ and e.graphics whatever is really weird. All I want to do is1) Calculate some coordinates clicking button 12) Click button 2 to draw a line with the numbers from button 13) Click button 1 to get new coordinates5) click button 3 to clear the graph. So I decided to draw everthing on top of a Panel, called panel1. I have a routine that draws on screen called drawlines,
Private Sub drawlines(ByVal g As Graphics, ByVal c As Color)
Dim p As New Pen(c, 1)
g.DrawLine(p, xStart, yStart, xEnd, yEnd)
[code].....
View 1 Replies
Jan 3, 2010
I'm looking for a way to specify the location for the User.config file that is used for storing the My.Settings object. It appears that this is not possible. The problem for me is, I don't want to be responsible for creating several different files on the users computer that really have no use and are difficult to find and clean once an update is released. For most users, this is not a serious problem, as many will probably never update the software, and most will probably only go through a couple of updates. On my system, there are config files for every build of the application, and the same to a lesser extent will be true for my beta testers.
I can understand that MS wants to make sure that no two applications will use the same location for storing application data, but a simple [UserData] [CompanyName][ApplicationName] for storing application data will probably suffice for 99.9999 percent of the legitimate applications in the world. Bogging a user's system down with erroneous files, no matter how small, is an unnecessary drain on system resources and a potential source of problems for the user. It's bad enough that most programs leave bits and pieces of themselves all over a user's system after De-installation - this to me seems only to exaggerate this problem.
Is the only way to get around this problem to write a whole new Settings Class? Is there a way to change the location of the UserConfig file to a more friendly (and more predictable) location that I am not finding for myself? It would seem that having at least the OPTION to specify a location for the User.Config file would be OBVIOUS and easy to implement, so why did they leave this out?
View 5 Replies
Oct 30, 2009
I have created a settings-file for my plug-in-based app. When the mainApp writes the settings to the file, the pluginApp should read the settings from the settings-file (when opening or at runtime even better), but somehow it reads the settings from the app.config-file. This means that the pluginApp never will read the settings according the values of the file.
View 4 Replies
Aug 5, 2009
I saw that you can also use a "Settings File" (Add new Item)to add your settings instead of the application settings. But I can't seem to write any values to the file. Someone with experience with the "Settings1.settings"?
View 2 Replies
Nov 22, 2011
I have been doing a lot of reading on this topic and most folks seem to agree that having Excel is required to use the COM Interop libraries. However they are never specific as to where that should be installed. Does it need to be installed on the machine I am developing on or does it need to be on every machine that I deploy to?
Edit: I should mention that this is desktop development/deployment targeted for all Windows machines.
View 3 Replies
Sep 15, 2010
I have an application that uses user settings and I have a button that gets a value (long) and writes this in a textbox I then have a setting called StoredKey with the data type of long I then pass this to the setting like this:my.settings.StoredKey=cLng(textbox1.text)this all works well in debug, but when I deploy my application and try to store the value in my.settings.StoredKey the value never gets written in!by deploy I mean packaging the exe in a setup and deployment project type and performing the wizard install to c:program files.[code]
View 1 Replies
May 16, 2012
So, I've created a form that allows for the user to save his or her settings after closing it. When using Visual Basics to run the program, there is no problem and it works wonders.Here is the problem.When I run the program not in Visual Basics, when I go to open the form, it fails. At first, it was because I didn't update the configuration file to include the new settings. Which was dumb, of course, but I updated the file and made sure to put it with the program.
View 2 Replies
Nov 23, 2011
I have a NumericUpDown Control on a form. In the Application Settings / Properties Binding, for the value parameter, i can't select my USER setting called : Heures (Integer / User).
[Code]...
But it's not saved.No problem for other settings (String / User). But i don't understand why the settings (Integer / User) are not saved.
View 1 Replies
Jan 22, 2012
I have a Boolean, user scoped setting. I access it through a referenced class library, called Settings. This class library has a Module with properties:
[Code]...
While the code is running this works. But after a restart of the application the new value is not persisted.
View 2 Replies
May 18, 2011
I'd like to know if there's a better way to read/write various user settings to disk. My program loads up a bunch of settings during load but also during execution from a few different forms, encrypted string values, boolean values, different types. The code seems to work okay but I have a feeling it's just not the best way to be doing this. Some of the settings are encrypted strings that have to be decrypted/encrypted so the code to read/write the text file is a bit different on some items. The data read from disk usually goes to a public string, a textbox, or a up/down type control. Below is about 1/10th of the settings that get loaded/written at various times. Anyone have a better way that might be more efficient that I should look at?
[Code]...
View 2 Replies