473,387 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Updating ApplicationSettings/Databindings at runtime

Hello,

I have a control on a form which has in the properties collection the
following:

(PropertyBinding)
Password
Username
Also there are (DataBindings) properties.
I have a listbox where the user can select the user. Depending on
this, the program is to load from the application settings the
username and password:

Properties.Settings.Default.Username = user1 (user2, user3, etc).
However this behavior does not appear to work properly. Do I need to
call a method to update or validate these behaviors so that the
username/password is properly updated?

If this is not possible, is there a control/library out there which can
manage username/passwords for a number of users?

Mike McWhinney

Oct 6 '06 #1
1 1569
Eljainc,

With the listbox (one of the complex datacontrols) you should use mostly the
DataSource, the displaymember and the valuemember.

Are you doing that?

Cor

"eljainc" <el*****@sbcglobal.netschreef in bericht
news:11**********************@e3g2000cwe.googlegro ups.com...
Hello,

I have a control on a form which has in the properties collection the
following:

(PropertyBinding)
Password
Username
Also there are (DataBindings) properties.
I have a listbox where the user can select the user. Depending on
this, the program is to load from the application settings the
username and password:

Properties.Settings.Default.Username = user1 (user2, user3, etc).
However this behavior does not appear to work properly. Do I need to
call a method to update or validate these behaviors so that the
username/password is properly updated?

If this is not possible, is there a control/library out there which can
manage username/passwords for a number of users?

Mike McWhinney

Oct 8 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: HAN(removethis)twister | last post by:
I've tried to create 11 textboxes as variables (not actually visible in the program, not in Windows Form Designer) and have set DataBindings to the text properties of the TextBoxes BUT according to...
16
by: Gary | last post by:
I have a form that takes one Contact record and edit's it. The routine used is as follows: Private Sub ContactMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
22
by: Gary | last post by:
I have been trying to update a record that I edited and can't seem to figure out what I'm missing. Here is the code that I have to load the record on the form: '...
2
by: Gary | last post by:
I have a form in which I would like to update one record out of a Contacts Database. Since I join one other field from another table, I can't update the data tables. I really want to display the...
6
by: Graham Blandford | last post by:
Hi all, I haven't received any replies to a previous question I posted regarding problems I was having with databound textboxes.. so I'll try a different angle... Can anyone point me in the...
0
by: ssg31415926 | last post by:
I've been trying to save a hashtable in an Application Settings file. I need to save settings for each tabPage on a form. Trouble is, the number of tabPages is determined at runtime, so I can't...
0
by: Peter Newman | last post by:
VB.net ( 2003 ) & SQL 2005 Thank you for all the help in navigating through the dataset using the CurrencyManager. However im now stuck on the next part , Updating, and addind records. how can...
0
by: kolalakitty | last post by:
Hopefully someone here can help me/point me in the right direction. I've found tons of references towards making relations, creating rows, saving said rows, using datagrids, databinding objects,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.