VS 2008 Unable To Make Settings?

Apr 5, 2010

I'm having trouble understanding how this works.Under my Project properties I select Settings and define the ones I need.Things like:

DefaultSaveToLocation (As String)
DefaultFileName (As String)
NoOfTimesAppStarted (As Integer)

[code]...

View 4 Replies


ADVERTISEMENT

Unable To Make Some Settings And Load The Result Of The Settings Via LinQ Into The Grid Of The UscStat?

Jan 3, 2012

I have the following structure:OLD: frmMain (WinForm)uscStat (UserControl with Grid) In frmMain I'm able to make some settings and load the result of the settings via LinQ into the Grid of the uscStat.

[Code]...

View 1 Replies

VS 2008 Make The Program Use Specific Regional Settings?

Sep 17, 2011

Is it possible with VB .NET to make the program use specific regional settings? More precisely , I want to make my application always use the English regional settings (those defined from Control panel > Regional settings) in order to always use (and calculate) the decimal numbers by using the dot symbol ( . ) as decimal separator , regardless the settings on the current PC (in order to avoid forcing the user to change his Regional settings) ?

View 7 Replies

Unable To Synchronize The My.Settings?

Sep 29, 2009

With my program I wanted to change the fixed connection string to a User entered one. So in the application settings I added DBConnectionString as a user define String. If the string if empty, it shows the window where one can add the server, database and user name / password. If you press the OK button, it saves the settings:

Private Sub LDBOKBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LDBOKBtn.Click
' ----- Server name is required.
If (Trim(LDBServer.Text) = "") Then
MsgBox("The Server or Host name is required.", _

[code]....

The problem is that when you press the same button to show the System Settings again, the ConnectionString is empty again. So nothing was saved.

View 3 Replies

ClickOnce Overwrites User Settings Settings .NET 2008 Cant Use Registry UAC Causes Error

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

VS 2008 Settings Are Read From App.config Instead Of Settings-file

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

VS 2008 Using 'Settings File' (Settings1.settings)

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

VS 2008 Removing My.Settings - Uncheck The "save My.settings" On Shutdown?

Sep 27, 2009

I set up some application settings for checkboxes on an app and then decided to remove them. When I set the Application Settings to (none) in the designer and restarted the app, the checkbox constantly checks and unchecks itself. I completely remade the app and removed the file that is used to store my.settings in the Local folder of the user's appdata profile. I also made sure to uncheck the "save my.settings" on shutdown.

View 6 Replies

Program To Make New Settings?

Apr 23, 2012

Is it possible for a program to make new settings?

To enter the settings name, type, scope, value?

View 9 Replies

Make A Program Remember Settings?

Mar 26, 2012

How do you make a program remember settings. For example, first it prompts you for your name, then when you close out of it and start it again, it will display your name?

View 8 Replies

Make A Program That Holds Info In The Settings?

Mar 24, 2011

i am trying to make a program that holds info in the settings... it holds it in an array so that you can add to it and take away from it... he is the code i have so far....

So far it is just the adding part but im still haveing some problems...

Public Class Form1
Public Function array_use1(ByVal array_string As String, ByVal number As Integer)
Dim num_holder As Integer = number

[Code].....

im trying to get this done so i can demonstrate how it works to some friends.

And also note that i dont want you to like write out a bunch of code then tell me its the right way...

View 8 Replies

Make A Settings Field Points To A Constant?

Jun 27, 2010

I would like to make a Settings Field (SKey) to point to a constant (Q)

Where the Settings Value will be modified by the user using Text box and public const Q = keys.Q so I can let the user modify a hotkey to what ever he wants I wished to use the following code for registering the Hotkey

Public Const Q = Keys.Q 'My.Settings.SKey should points to this variable
'There will be more constants for other keys
RegisterHotKey(Me.Handle, 1, HCtrl + HAlt, My.Settings.SKey)
the problem is:

the program use MY.settings.SKey as String and I cannot define it as integer where the input is a text

View 10 Replies

VS 2010 - Make A Webbrowser - Settings Menu

Jul 20, 2011

I'm trying to make a webbrowser in VB 2010 just for fun. I'm trying to make a settings menu but I can't seem to figure out how to do it. Form2.ShowDialog() won't work. I'm a total newb to VB so I don't really know what I'm doing wrong.

Here's the code for Form1 (the main browser):

Public Class Form1

Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs)

[CODE]...

View 1 Replies

Unable To Make SQL QUERIES?

Aug 26, 2009

I am newbee to VB Express and having many problems for displaying different reports from Tables in MsAccess to Listview in Vb Express.

View 4 Replies

Make Splash Screen Check Settings At Launch?

Mar 23, 2011

I am creating a web browser as a school project. One feature I hope to include involves a splash screen check the state of a Boolean (True/False) at launch and then open the appropriate form. I know that I will need an 'If' statement in the code of a splash screen but I am not sure how I would go about making it do this.

View 4 Replies

Unable To Make An Installer For Project?

Aug 17, 2009

I use VB 2008 express edition. I want to be able to make an installer for my project. If I run the executable file from the development computer, it works fine. When I try to install the program in other computer, it tries to download .net framework. Is there anyway to prevent this to happen? I have the .net framework installer in a CD.

View 2 Replies

Unable To Make Combobox ListIndex?

Jan 20, 2010

I am trying to have the index value of a selected item in a combobox returned to a variableThen, if the variable = 1 (which would be the index of th second item in the combobox), I want a groupbox to be hidden (be invisible) on the form. Here is my code...Getting an error that says:

'ListIndex' is not a member of 'System.Windows.Forms.ComboBox'
Private Sub cbxAccounts_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)

[code]....

View 5 Replies

Unable To Make Keyboard Functions?

Aug 29, 2011

I wanted to make a calculator. Its fully made and everything but I recently wanted to add more to it. Only thing I can't figure out to do is to make keyboard functions. Like, if I want to type in the numbers instead of clicking the buttons on the calculator to input it into the calc. [code]....

It works to a certain point but i found out that the timer input multiple integers when pressing a key so I thought of about turning off the timer and then having the timer turn back on somehow but that is as close as i can get.

View 3 Replies

Unable To Make Conditional Date Formatting?

Sep 25, 2010

I am frustrated that I cannot solve this seemingly easy problem:

Here's the code:
If Date.Now.Day = vbSaturday Then
Label6.Visible = False

[code]....

View 5 Replies

Unable To Make An Attendance Monitoring System?

Dec 15, 2009

im trying to make an attendance monitoring system using vb.net 2005. i have a little experienced programming, i used vb6. But vb.net is much more different in vb6 because of its codes. my problem is that in dtpicker, it do not accept any value that came from a textbox.

my code is like this

dtpicker1.value = textbox1.text

but an error existed..then i coded like this hoping that it will work

dtpicker1.value.hour = textbox1.text

View 2 Replies

Unable To Make Own Buttons Drop Down Boxes?

Oct 13, 2011

I bet you all know DotNetFrameWork 4 needed for VB 2010 applications to work...

Any idea how i make my own framework?

I want to be able to make my own buttons drop down boxes...

And after i make it how to i put it into a dll so i can reload it in another app and use it...

View 9 Replies

Unable To Make The Button In Working Order

Feb 9, 2012

Public Class Form5 Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

txtfinaltot.Text = Format((pizza + extratotal), "currency")

View 4 Replies

VS 2010 Unable To Make Login System?

Oct 27, 2009

Im creating (trying) a login system for my application , but im having problems with the directory. The following code will create the folder but it wont create the username.txt & password.txt file within the folder , any ideas whats up ?

Textbox3 = Username
Textbox4 = Password
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

[code].....

View 12 Replies

My.Settings.Upgrade Stopped Preserving Settings After Visual Studio And Framework Were Upgraded?

Jan 13, 2011

The company has been using Visual Studio 2008 and .NET Framework 2.0 for approximately 2 years. During that time we released several versions (4.x.x) of our program to the public and were able to preserve the user's settings using My.Settings.Upgrade.During the past development cycle we upgraded the program to Visual Studio 2010 and .NET Framework 4.0 and changed the version to 5.x.x. Now, when a user upgrades from 4.x.x to 5.x.x they lose all of their settings.However, in all upgrades after that point (ie 5.0 to 5.1) all the user's settings are once again preserved.I checked C:Documents and Settings<USER_NAME>Local SettingsApplication DataCompanyName and it contains two directories:

ApplicationName_Url_aaa ApplicationName_Url_bbb

where aaa and bbb are 32 character strings. All of the user.config files for the 4.x.x releases can be found in the ApplicationName_ Url_aaa directory. All of the user.config files for the 5.x.x releases can be found in the ApplicationName_Url_bbb directory.Based on this information it seems like something changed when we converted our program to VS2010 and Framework4 that is now causing a different 32 character string to be generated. However, we have been unable to track it down.

View 9 Replies

Application.Settings VB 2005 - Save Arrays Using The Settings System Object

Jan 14, 2009

I just wondered if you can or can't save arrays using the settings system object. There seems to be no way of entering it at designtime. It seems implied you cannot create new user settings.subobjects at runtime. I'm looking to find the easiest way to save a populated array of PictureBox's. If the only way is a self/custom made/managed .ini file then I need to know so i can start on that but I was hoping to use some of all this phaff in the new frameworks usefully.

View 3 Replies

How To Maintain Application Modified Settings In The Settings Files After A Program Update

Sep 8, 2009

Is there a way to maintain application modified Settings in the settings files after a program update? i.e. I have 10 or so values in the settings file and the users can modify them... when I send a program update they revert back to what I initially programmed them to be.

View 3 Replies

Application.restart After My.settings.save Doesn't Load The New Settings

Feb 8, 2008

i have created a user setting named 'setmeup' as string, scope = user, value = "magical meow meow!".in my code i access it and assign it a new value like this...my.settings.setmeup = "howdy cowboy!"my.settings.save()application.restart()when the application restarts, i expect the my.settings.setmeup = "howdy cowboy!" but when i check its contents its still "magical meow meow!".but when i use application.exit() instead of application.restart() and manually restart the program, my.settings.setmeup = "howdy cowboy!" which is correct.what must i do? i want to use application.restart() because i don't want the users to double-click the icon again to start the program. i want the program to restart automatically.

View 2 Replies

VS 2010 - My.Settings - Can't Find File Which Reflects Changes To User Settings

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

VS 2010 Save The Treeview Items To Settings (my.settings.history)?

Mar 25, 2011

I'm working with an Treeview and i'm new at it and i have 2 questions.

1. How can i save the treeview items, to settings (my.settings.history)

2. How can i save the treeview items as an TXT or XML file or another exception.

View 13 Replies

Difference Between Standard My.settings And Adding A New Class That Is Of Settings?

Mar 3, 2009

my old vb6 program used to store to ini files now with .net I rekon I need to do something new.. was thinking XML but then in searching around I stumbled apon this my.settings stuff.. so I followed the instructions but something strange is going one..

1. whats the difference between the standard my.settings and adding a new class that is of settings ? anything ?

2. I made 10 new settings in the setting manager but when I try to change then it gives me the old squiggle line saying no go.

View 15 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved