Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Well first I'm very new to any programming language but I really want to get into it. I'm just making programs right now that are basically like you click a button and it moves data from here to there, so in this case I have three text areas and a button.

 

textBox1

textBox2

textBox3

button1

 

When button1 is clicked it takes textBox1.text and textBox2.text and adds them together with + and is supposed to put it in textBox3.text. So basically I have this

 

textBox3.text = textBox1.text + textBox2.text;

 

I don't know if this is right at all, but I keep getting this error

 

[C# Error] WinForm.cs(125): 'System.Windows.Forms.Control.text' is inaccessible due to its protection level

 

I don't know where, or how to change the protection level. I'm using Borland Delphi 2005. Any help would be appreciated.

  • Leaders
Posted
Are you using .text or .Text? Since C# is case-sensitive, if the TexbBox class has a private member named text you will get this error. Change ".text" to ".Text" and you should be alright.
[sIGPIC]e[/sIGPIC]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...