.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Home >> Forum >> WPF >> Post New QuestionBookmark and Share Subscribe to Forum

TextBox in WPF

Posted By: Madhu Gowda     Posted Date: August 03, 2011    Points:5   Category :WPF
i have created basic WPF from which has 4 text boxes.
i want to save values which will enter by end user through those text boxes

how can i retrieve those values please help me

thanks in advance,,,,
Madhu Gowda

Author: Amit Mehra             
Posted Date: August 03, 2011     Points: 20   


You can get the TextBox value like this

string strValue = TextBox1.Text;

In the above code TextBox1 is the name of the TextBox

hope this helps

Please "Mark As Answer " if this post help you.
Author: kamlesh             
Posted Date: August 08, 2011     Points: 20   


you can sore text box values in string like
string TextValue = TextBox1.Text;

Thanks And Regards.
Kamlesh Nikam
Author: Gowthammanju             
Posted Date: August 10, 2011     Points: 20   

try these as

The <TextBox /> tag creates a text box.  The following syntaxes create text boxes: 

<TextBox />
<TextBox>Enter something here</TextBox>
This code snippet creates a text box with text in it.

<TextBox>Enter something here</TextBox>

Thanks & Regards,

Mark if the answer is true

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend