someTextbox.LocalText = TabPage.SelectedIndex.charname
someTextbox2.LocalText = TabPage.SelectedIndex.charserver
This works for any object with a SelectedIndex atribute linked to a DataSource. Drop down menus work great.
I suggest you move the username and password to a simple varibale assignment rather than making them part of the DataSource. You'll have a hard time referencing them from a dataSource if they aren't the selected item.
|