|
I am reading in a stream from a file and the text being read in is like this.
"\"ABBE0001\",\"ABBEY\",\"CHRISTOPHER\",\"\",\"\",\"MR\",\"\",\"453 772 576\",\"\",\"\",\"M\",\"24/11/1960\""
I want to remove all backslashes and quotes but when I use the replace it does not work. How can I remove the backslashes and quotes.
Thanks.
Stephen
|
|
|
|
|
Did you put an @ in front of the string, and escape the quote, or did you escape the quote AND the slash ? "\\\"" or @"\""" is what you need
'It does not work' is kind of hard to fathom. The replace method works, but to know what you're doing wrong, we need more info on what you expect, and what you're getting.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
StephenMcAllister wrote:
when I use the replace it does not work
Have you tried the StringBuilder class ?
|
|
|
|
|
Is is possible to show an MDI child form in Modal Forms ? or any other alternative method to show a child form in Modal Form ?
|
|
|
|
|
Why would you ever want to do this? If your showing a modal form, the rest of your app stops. This wouldn't fit the definition of an MDI Child form. Just create a normal form and show it using .ShowDialog() . Don't set it as an MDI Child.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks. For clear alll my confuse
|
|
|
|
|
Hi guys,
I am using C# to automate some Excel tasks and in it I am defining a name for an Excel sheet using (sheet).Names.Add("TableName", "=Sheet1!$A:$D", Type.Missing... (etc))
and when I open the Excel application that I created it defines the name a litte different than if I was to define it manually.
When I define it manually it would be:
Names in Workbook: TableName
Refers to: =Sheet1!$A:$D
Using C# automation it is:
Names in Workbook: TableName Sheet1
Refers to: =Sheet1!$A:$D
There is an extra right-justified "Sheet1" Appended to the Name!!!
Because of that I have no way of referring to that table since it won't recognize it because of that "Sheet1"!
I need to access that table using this code:
cmdExcel = new OleDbCommand("Select * FROM TableName", cnExcel);
But it won't recognize it due to that extra "Sheet1"!
SOMEONE HELP!
I'll be indebted to you for life!
schoudhr@hotmail.com
|
|
|
|
|
If i want to distribuite my .NET to XP users what i have to add to the installing solution?
Can i distribuite to W98, WNT, ME, 2000?
|
|
|
|
|
Dunno why you got a one, everyone has to learn. You need to distribute the .NET framework with your app, to all those platforms. some things may not work in W98, but you'd have to read the docs to know for sure.
Actually, I'm not sure if any NT versions prior to 2000 are supported, if they are, they will require the latest service packs.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
|
read up on BootStrapping, thats how you include pre-requisities such as .NET framework. The actual distribution can be either MSI or Click Once. Plenty of articles on on these two deployment techniques on MSDN. A good site on Click Once would be www.dasblonde.net
hope this helps
V
|
|
|
|
|
Is there a way to embed resources to an external assembly programmaticly?
I have to develop a self extracting exe but I have no idea how to attach the data to an assembly.
|
|
|
|
|
Self extracting .EXE's are written to look for a specific tag after the .EXE code for the data which it's going to unpack. In a self extracting .ZIP, it's done by creating a normal .ZIP file, then just copying a self extractor .exe to a target filename and appending the original .ZIP file.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello....
How raw socket deals with pakets comming from internet?or what it do exactly?
Thank you
|
|
|
|
|
What?????????? What are you trying to do? WHy are you worried about viruses on sockets?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I want to write an antivirus program that checks viruses coming from the network
|
|
|
|
|
Quite an undertaking...
There's a reason why you don't see something like this commercially available. It just doesn't happen!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i managed to export report pragmatically, by Setting the Export type to
// PDF, Excel, Word Doc, RTF Doc,
// HTML 3.2, HTML 4.0 or CrystalReport
but i want to export report to txt file !
thx.
|
|
|
|
|
Hi
I want to create a new MS access database through my C# program and put it in the same directory of the exe file.
How can I do that? can I have the code for that,please .
Thanks
|
|
|
|
|
Please I need the answer soon...
thanks
|
|
|
|
|
|
Hi,
Is it possible to to embed a word document in a C# form view? Like the internet explorer, when we visit a URL of a word document, the document will be opened in the browser instead of launching a stand alone MS Word.
If yes, how to do so?
Thanks
|
|
|
|
|
This article might be of use since one of the example screenshots shows a worddoc embedded in a browser control, but because of it's length I haven't read it.
http://www.codeproject.com/books/0764549146_8.asp?
|
|
|
|
|
Also look at this, unlike the monster I linked earlier it's very strait forward copy/paste exercise. IT gives everything except the menus which apparently aren't supported by the control. If you find a way to get them working, please post something here, or otherwise let me know since I'm looking into embedding office components as well. (primarily excel since a richedit control would do for what i need with text, but adding all the needed functions from excell into a datagrid would really suck)
http://support.microsoft.com/default.aspx?scid=kb;en-us;304662
EDIT: I'd think/hope there's a way to do it, since if you drag/drop office files into IE itself the proper menus are loaded but there doesn't appear to be one.
|
|
|
|
|
When i use oledb and open a database(*.mdb) in exclusive mode at a program. Can i open that database in another program to edit or update that database?
Nothing
|
|
|
|