Click here to Skip to main content
15,914,488 members
Home / Discussions / C#
   

C#

 
AnswerRe: The pay phone project Pin
Wes Aday16-Nov-09 9:39
professionalWes Aday16-Nov-09 9:39 
QuestionText on Aero Glass that has Painted Layer - how? Pin
Rabangus15-Nov-09 23:27
Rabangus15-Nov-09 23:27 
Questionsearch for unicode text? Pin
krt7201215-Nov-09 22:53
krt7201215-Nov-09 22:53 
AnswerRe: search for unicode text? Pin
Christian Graus15-Nov-09 22:56
protectorChristian Graus15-Nov-09 22:56 
GeneralRe: search for unicode text? Pin
krt7201215-Nov-09 23:05
krt7201215-Nov-09 23:05 
GeneralRe: search for unicode text? Pin
Christian Graus15-Nov-09 23:16
protectorChristian Graus15-Nov-09 23:16 
GeneralRe: search for unicode text? Pin
krt7201215-Nov-09 23:23
krt7201215-Nov-09 23:23 
GeneralRe: search for unicode text? Pin
Christian Graus15-Nov-09 23:28
protectorChristian Graus15-Nov-09 23:28 
krt72012 wrote:
but when I search for a text sting in a hex editor as a unicode string, the string has dots in between each character


That's because Unicode characters have two bytes and you're looking on the byte level. However, inside a textbox, in .NET, the string is unicode and it's shown just as a string. That is, the A has two bytes to represent it, but you just see the A.

krt72012 wrote:
What I'm trying to do is search for a halo 3 service tag written in that format inside an xbox 360 profile based on what the user puts in as their service tag, and then have it search and find and replace the service tag with what the user enters in the second text box.


Ah - OK. Well, if you're in .NET, it will show as unicode. Then you can use File.ReadAllText to read a file, the Replace method on the string class to replace the text in textbox1 with the text in textbox2, and File.WriteAllText to overwrite the file in it's changed format. If the two strings need to be the same length, you'd need to validate that, and of course, if the text entered is so simple that it appears elsewhere in the text to where you WANT to change it, that will be changed as well. In that case, you'd need to use the Find methods to find the actual index and do some work with the substring method to build your new string ( or the replace method may take parameters to specify where in the string it's allowed to look )

Christian Graus

Driven to the arms of OSX by Vista.

Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

GeneralRe: search for unicode text? Pin
krt7201215-Nov-09 23:32
krt7201215-Nov-09 23:32 
QuestionHow to test proxy setting for WCF client? Pin
link27sea15-Nov-09 22:44
link27sea15-Nov-09 22:44 
AnswerRe: How to test proxy setting for WCF client? Pin
Mirko198015-Nov-09 23:13
Mirko198015-Nov-09 23:13 
GeneralRe: How to test proxy setting for WCF client? Pin
link27sea16-Nov-09 17:24
link27sea16-Nov-09 17:24 
QuestionSearching Bluetooth devices in background, Visual Studio C#?? Pin
fernandovallecordoba15-Nov-09 22:36
fernandovallecordoba15-Nov-09 22:36 
AnswerRe: Searching Bluetooth devices in background, Visual Studio C#?? Pin
Giorgi Dalakishvili15-Nov-09 22:50
mentorGiorgi Dalakishvili15-Nov-09 22:50 
QuestionUpdate Windows Service member variable from external windows Application in c# [modified] Pin
platso_58815-Nov-09 21:45
platso_58815-Nov-09 21:45 
AnswerRe: Update Windows Service member variable from external windows Application in c# Pin
Covean15-Nov-09 22:36
Covean15-Nov-09 22:36 
GeneralRe: Update Windows Service member variable from external windows Application in c# Pin
platso_58816-Nov-09 0:40
platso_58816-Nov-09 0:40 
GeneralRe: Update Windows Service member variable from external windows Application in c# Pin
Covean16-Nov-09 1:19
Covean16-Nov-09 1:19 
GeneralRe: Update Windows Service member variable from external windows Application in c# Pin
platso_58817-Nov-09 18:08
platso_58817-Nov-09 18:08 
AnswerRe: Update Windows Service member variable from external windows Application in c# Pin
dojohansen15-Nov-09 22:37
dojohansen15-Nov-09 22:37 
Questionc# Line Graph for compact framework Pin
benjamin yap15-Nov-09 20:51
benjamin yap15-Nov-09 20:51 
Questionhow to open program through C# program and give this program focus - in Windows Mobile ? Pin
E_Gold15-Nov-09 19:55
E_Gold15-Nov-09 19:55 
QuestionHow to send image via webservices Pin
Shaik Haneef15-Nov-09 19:41
Shaik Haneef15-Nov-09 19:41 
AnswerRe: How to send image via webservices Pin
Christian Graus15-Nov-09 19:43
protectorChristian Graus15-Nov-09 19:43 
GeneralPlease Give me accurate link.. I can't found so that I am posted in google. Pin
Shaik Haneef15-Nov-09 20:03
Shaik Haneef15-Nov-09 20:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.