• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 62
  • Last Modified:

allow the double quotes in textbox using pure C#

hi sir,
good evening,
i want to allow the double quotes on textbox by using pure C#. code

regards,
sivaji.
0
sivaji ikkurthi
Asked:
sivaji ikkurthi
  • 2
1 Solution
 
AndyAinscowFreelance programmer / ConsultantCommented:
They are allowed by default, to stop them you would have to do something specific.  

Try typing them in from the keyboard and when setting text from code you can use code like this:
txtBox1.Text = "Double Quote \" is here and single quote \' here"
0
 
AndyAinscowFreelance programmer / ConsultantCommented:
This works
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now