473,395 Members | 1,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Avoid escape characters when setting string property

6
Hi,

I am having a problem with string property in my custom control.

If I use \n \r... special chars in this property, they are replaced with escape quotes. Example:

if I set next value:

Expand|Select|Wrap|Line Numbers
  1. row0\nrow1\nrow2
In designer it will be automatically replaced with:

Expand|Select|Wrap|Line Numbers
  1. row0\\nrow1\\nrow2
As you may see, escape chars are added.

This may be done and by using button control and Text property.

My question is how to disable adding escape quotes in this my property. Should I use some attribute parameter, or something else?

Thank you
Aug 31 '10 #1
4 3549
Plater
7,872 Expert 4TB
Stop setting it in the designer itself, go open up the designer file and make the changes there
Aug 31 '10 #2
bokisa
6
Hi,

Problem is that I made custom control for other users. Maybe there is a better solution.

Best regards
Aug 31 '10 #3
Plater
7,872 Expert 4TB
Well all you need to really do is the property in code and not use the gui. The gui will convert.
Aug 31 '10 #4
bokisa
6
I was think that there is some attribute to control this.
Aug 31 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: BTnews | last post by:
Hi, Can anyone here point me at a definitive guide or tutorial about using escape characters when building SQL queries from user entered data? I'm especially interested in info on this in regard...
2
by: Matthew Wieder | last post by:
In my previous post, I asked about a routine which prepares a string for an XPath query by taking care of escape characters. Unable to find a list, I'm now wondering assumign I enclose the...
4
by: Mantorok | last post by:
Hi I have a couple of encryption methods but when I call decrypt I get the string back but with a load \0 escape characters on the end? Any idea why? It is actually causing problems in some...
3
by: Guadala Harry | last post by:
I'd like to know the answer to the following question so I can know what to expect with regard to other similar uses of escape characters and strings. While everything works fine - I'd like to know...
20
by: SMG | last post by:
Hi All, I have created an application which is working fine and is in about to launch, now suddenly my mgmt says there are chances that Scrip ID( a particular id and not prim key) may have special...
0
by: Mike Cooper | last post by:
Hi everyone, I am accessing several binary (PCL) files sequentially using a for loop. For each file I am using the fileget() command to populate the contents of the file into a string. I use...
1
by: deepa.ravikiran | last post by:
Escape characters in RegisterClientScriptBlock I am using the RegisterClientScriptBlock to emit client script. What I am trying to do here is: User can open a popup window to build an MS...
3
by: JJ | last post by:
Does anyone know if there is any difference in the excape characters on a Mac (compared to a PC). I am parsing some text that is pasted into a textbox, and splitting it based on the position of \t...
2
by: sklett | last post by:
I'm having some trouble storing a string in my settings file that contains escape characters. If I enter "This is the first line\r\nand this is the second line." When I retrieve the string from...
1
by: pronerd | last post by:
Hi, I was wondering if any one knows of an easy way to add escape characters to an existing string in a BASH script. I have a BASH script that is failing when a string is passed with brackets...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.