TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Darren Rutter
NA
1
0
.... Is Inaccessible due to its protection level
Apr 3 2009 10:35 AM
Hi there,
I am currently doing a C# project for my degree in the UK. i am trying to 'copy' infomation over from one form to the other by setting the text property of one equal to the text property of the other, you can see this below.
frmBill BillForm = new frmBill();
public void btnSeeBill_Click(object sender, EventArgs e)
{
BillForm.lblName.Text = txtName.Text;
}
I cannot see why this code will not work as the error i get is: 'C_sharp_DOT_NET_Project.frmBill.lblName' is inaccessible due to its protection level
please can you help me with this as i have to hand this in soon.
Thanks in advance for your help :-)
Darren Rutter
Reply
Answers (
1
)
How to Randomize the Contents of a combobox when the Form is Loaded?
How to get the contents of the web browser control