Way To Do Settings Once And Apply To Many Forms?

Jan 28, 2011

I'm working in VS 2008, on a windows application.I have many forms, and I'm in the process of redesigning the GUI.Is there anything that I can do to standard some of the placement of the controls. For example, I have a header for each page, at a certain size and location. Instead of going to each form, is there a way to do the settings once, and apply to many forms?

View 2 Replies


ADVERTISEMENT

Can't Apply Settings When Already Checked In Registry

Jan 26, 2010

I'm designing an application to apply common settings to registry however there's one problem with it

View 1 Replies

Apply Changes To All Forms Of An Application

Jun 21, 2010

Is there a way to apply any changes made to an entire application and not just the open (active) form that you are in? I.E. I change the backcolor to a color from a color dialog. I want that chosen color to be applied to all the forms' backcolor in my project. Can this also then be applied to all the other controls' backcolor? The code that I posted works but all forms and controls have to have the changes applied to each one separately.

[Code]....

View 1 Replies

Forms :: Apply Skin To Windows Form?

Jun 29, 2010

How to apply different skins to windows form in vb.net. if any one knows code or link then reply me soon.

View 1 Replies

Forms :: Multiple Checkboxes With An Apply Type Button?

Aug 31, 2009

I am working on a program that has about 20 checkboxes on it. What I want to be able to do is to check the checkboxes and then hit an apply button then at that point whatever is checked/ or if something is unchecked the code for that item is run and those changes are applied. If the box is checked it disables the service if it is unchecked it enables the service.

the code I have so far is this for each service I want turned off i have placed under a button name ApplyEach service is a different registry entry and service name, some are just registry key changes.the code seemed to work at first but that is when I only had one checkbox under the button.

I know I have done something wrong with the program logic here Im just not sure how to fix it as I've only been using VB.net for 2 weeks now... I can't find any reference on the internet to having multiple checkboxes with an apply type button. Just like in a normal windows application where the apply button is used to apply the changes on the form.

[Code]...

View 2 Replies

Globalization - Changing Forms Language - Doesn't Apply To Items Inside Group Box?

May 8, 2010

I have a windows form I want to show in two languages. When the user clicks a language button it switches to the other language.

It works fine, when you click it all the labels change to the other language.

Only problem is labels inside a group box do not change.

[Code]...

View 1 Replies

Forms :: Sharing Settings XML Document Between Forms?

Dec 26, 2009

I have an application built that has several forms. I use an XML file to store settings data (mainly folder names for data output) and I need each form to be able to access and modify the data. I'd also like each form to access functions from a main form (such as file parsing functions). I have read articles about properties and inheritance but I need some guidance as this topic is pretty confusing.

[Code]...

View 10 Replies

How Do Design Settings Forms

Sep 3, 2009

How do design settings forms

View 2 Replies

Forms :: Reading .ini And Showing Settings?

May 6, 2009

I've been trying to get my head round a problem for days now, I want to read 'File.ini' line by line checking if specific text exists in the file and then display on a windows form weather particular settings are turned on or off.

So far this code works if "TargetText" exists but if it doenst I get an error on the code line: "If line.Contains("TargetText") Then".

[Code]...

It works if "TargetText" existin in a line in the file but if it doesnt exist I get the 'Null Reference Exception. Object reference not set to an instance of an object.' Any suggestions greatfully recieved!

View 3 Replies

Rewriting The Settings In Windows Forms?

Dec 25, 2011

I have set the name of my Form text in the application settings and I need to rewrite it. Is it possible as it is showing me that it is only a readonly.I know that we can simply change it by using me.text="" But I have a problem in my application as I have the below code where On every time the form loads it is erasing the text.

Protected Overrides Sub OnLayout(ByVal e As System.Windows.Forms.LayoutEventArgs)
MyBase.OnLayout(e)
'Me.Text = CStr(Val(Me.Text) + 1)
FillList()

[code]....

View 2 Replies

Forms :: My.settings Save Only Font Name Not Size?

Nov 20, 2010

I have a question how can I save in My.Settings only the font name and not the size.I have a form where I can change the font for a label on another form. This works perfect.I can even save it in my.settings.

The thing is though, that on that other form I have 2 labels, thet should have the same font name, but the size should be different. (label1 has font size = 40 (can be changed) and label2 should have a fixed font size (should not be changed)).I tried to use label2.font.size = "14", but font.size is readonly.

View 2 Replies

Forms :: Use Process.start Based On Settings File?

May 14, 2010

My first post! im quite new to programming but loving every minute of it.Basically i want to open another exe file from vb.net 2010. i can do it normally using

system.Diagnostics.Process.Start _ ("c:winamp.exe") if winamp for example is installed on another pc in another location i want to run it from my program but i want there to be sort of like a settings.txt file where you can edit the path to winamp and my program should first read the path set in the settings file and then open accordingly. how do i go about doing this?

btw it would be great if you could point me in the right direction for making a windows form where one can edit the settings file within my program without editing the settings file in notepad

View 4 Replies

How To Save A Forms Settings In Visual Basic 2008

Jan 5, 2010

trying to save the settings in a settings form but every time m setting the settings (when the form is running) then exiting it and then reopening itare the settings that i setted not there Ex : I open form2 by clicking on a button thought form1 and change the settings for example i uncheck a checkbox then do i close form2 and then open it again. And the settings should be saved so the unchecked checkbox should still be unchecked.BUT when i close form1 should the settings be unsaved and go back to normal :)

View 3 Replies

VS 2010 Making A Form That Handles A Different Forms Settings?

Aug 19, 2010

How would i go about making a form that handles a different forms settings?ei, the Button Forecolours ect.

View 5 Replies

Resizing Forms - Form Size Aint Affected By Screen Resolution Settings

Feb 15, 2011

how do i set my vb2008 form in such away that the form size aint affected by screen resolution settings

View 3 Replies

Forms :: Form Settings - Check If File Exist On Main Form

Apr 29, 2011

[Code] I want like to check if a file exist on main form, if not: force open settings form. And then when the user is closing the form with exit button = check if the file exist again. If it doesn't exist, close application. It's a huge application and I need optimized on most parts. Also, the settings form is asking the closing question two times.

View 1 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

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

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

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

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

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 2010 - Settings.settings Saved Into The Registry?

Jun 11, 2010

Small questions about the settings.settings. Are these settings saved into the registry? I'm want to use and external file for my connection-commands. I don't want to use the registry to store the strings. What do you recommend?

View 11 Replies

Add Custom Settings To The My.Settings Namespace

Mar 18, 2010

Add custom settings to the My.Settings namespace

View 7 Replies

Changing Settings.settings Not Working

Apr 19, 2012

I can double click on the Setting.settings and the projects Settings grid appears in design. I change the value of a user scope setting yet when I run the application in debug it picks up a value I set initially instead of the current value of the setting.

When the app starts I set a connection string to the path of the .SDF file that I set in the Settings.settings grid and accesss it with

mRootSDFPath As
String =
My.Settings.SDFConnectionString

[Code].....

View 6 Replies







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