|
-
July 25th, 2009, 07:13 PM
#1
Set Values from one tab to another...
Hi Guys,
This issue is fairly simple and I'm sure there is an easy fix for this.
Basically, I have a form that has a tab control and the default tab in the control has a mailing address. There is another tab for home address. On the default tab, I have a button that simply sets the current values in the mailing address fields to the home address fields on the other tab.
However, this doesn't work unless I activate the 2nd tab and then go back to the first tab to click the button...
private void button6_Click(object sender, EventArgs e)
{
mailingAddressTextBox.Text = homeAddressTextBox.Text;
mailingCityTextBox.Text = homeCityTextBox.Text;
mailingStateTextBox.Text = homeStateTextBox.Text;
mailingZipTextBox.Text = homeZipTextBox.Text;
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|