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


Top 5 Contributors of the Month
david stephan

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
Hi,
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



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

Hi,

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


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

hi

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></TextBox>
<TextBox>Enter something here</TextBox>
This code snippet creates a text box with text in it.

<Canvas>
<TextBox>Enter something here</TextBox>
</Canvas>


Thanks & Regards,
GowthamManju
Chennai



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
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

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