Click here to Skip to main content
15,904,339 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
cannot implicity convert type 'string' to System.Windows.Forms.Textbox
Posted

Quote:
cannot implicity convert type 'string' to System.Windows.Forms.Textbox
It is quite clear that you are trying to assign a string directly to the TextBox, but you should assign that to TextBox.Text property.
 
Share this answer
 
Comments
BillWoodruff 28-Dec-13 3:20am    
A reasonable guess :) +5
Thanks a lot BillWoodruff . :)
As the error suggests, you cannot convert string to textbox.
Try Text1.text = myString;
 
Share this answer
 
i think you are writting like this
string Str = TextBox1;


instead write

string Str = TextBox1.Text;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900