By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,028 Members | 1,784 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,028 IT Pros & Developers. It's quick & easy.

c# getting a value from a databound formX.txtbox into formY.txtbox

P: 2

c# 2008 express edition.

Can anyone please help me figure out why I cannot get any value from one form to another when the controls are databound. (the formY.txtbox lands up empty)

in formY I write in the load event:

Formx frmx = new Formx();
txtCustomer.Text = frmx.customerIdTextBox.Text;

....(customerIdTextBox is public and shows up in intellisense).

please advise as I am a newbie and have been stuck for the past 8 hours and can only get values if the txtbox is not databound.

Thanks in advance
Nov 21 '08 #1
Share this Question
Share on Google+
1 Reply

P: 2
in form2:
public string custID;


in form1:

button1 click event
form2 f=new form2();

Nov 25 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.