Click here to Skip to main content
15,918,742 members
Home / Discussions / C#
   

C#

 
AnswerRe: Minimize button click event? Pin
Member 861778022-May-12 9:48
Member 861778022-May-12 9:48 
QuestionOne Crystal Report, Two Subreports Pin
CombatRob26-May-06 10:23
CombatRob26-May-06 10:23 
Questionupdate with datagridview Pin
kjosh26-May-06 10:14
kjosh26-May-06 10:14 
AnswerRe: update with datagridview Pin
maryamf26-May-06 10:56
maryamf26-May-06 10:56 
GeneralRe: update with datagridview Pin
kjosh26-May-06 11:07
kjosh26-May-06 11:07 
GeneralRe: update with datagridview Pin
Sean8926-May-06 12:09
Sean8926-May-06 12:09 
AnswerRe: update with datagridview [modified] Pin
Mairaaj Khan26-May-06 20:04
professionalMairaaj Khan26-May-06 20:04 
QuestionXML root not found (Stream problem) [modified] Pin
NaNg1524126-May-06 9:19
NaNg1524126-May-06 9:19 
Ok so I have this code, and it gives me an error (Root XML row not found).
Now I know that this is a-looooot of mess, so if you can make it better that's even better.
So here is the code, and if anyone can tell me why it throws this error and how can I fix it, I would just thank him Big Grin | :-D

Program.YSLFileStream = new FileStream(FileName, FileMode.Open, FileAccess.ReadWrite, FileShare.None); // Just a stream (static member)<br />
MemoryStream ms = new MemoryStream();<br />
StreamReader TempStreamReader = new StreamReader(Program.YSLFileStream);<br />
StreamWriter sw = new StreamWriter(ms);<br />
string strSchema = System.Security.Cryptography.VigBinEncDec.BothStrDecrypt(TempStreamReader.ReadToEnd(), "***KeyHere!!!***");<br />
strSchema = System.Security.Cryptography.Base64Decoder.Base64StrDecode(strSchema);<br />
<br />
TempStreamReader = new StreamReader(ms);<br />
sw.Write(strSchema);<br />
sw.Flush();<br />
YSLDS.ReadXmlSchema(TempStreamReader);<br />
sw.Close();<br />
sw.Dispose();<br />
TempStreamReader.Close();<br />
TempStreamReader.Dispose();


Oh and I have checked it out, insted of MemoryStream I used a FileStream and the XML was good!

-- modified at 15:19 Friday 26th May, 2006
AnswerRe: XML root not found (Stream problem) Pin
Dustin Metzgar26-May-06 9:25
Dustin Metzgar26-May-06 9:25 
GeneralRe: XML root not found (Stream problem) Pin
NaNg1524126-May-06 9:34
NaNg1524126-May-06 9:34 
QuestionRotating line Pin
Mega700026-May-06 9:01
Mega700026-May-06 9:01 
AnswerRe: Rotating line Pin
led mike26-May-06 9:18
led mike26-May-06 9:18 
Questionwhat is Shell Protection and how to Protect My EXE ? Pin
hdv21226-May-06 7:56
hdv21226-May-06 7:56 
AnswerRe: what is Shell Protection and how to Protect My EXE ? Pin
Judah Gabriel Himango26-May-06 9:51
sponsorJudah Gabriel Himango26-May-06 9:51 
GeneralRe: what is Shell Protection and how to Protect My EXE ? Pin
hdv21226-May-06 13:01
hdv21226-May-06 13:01 
GeneralRe: what is Shell Protection and how to Protect My EXE ? Pin
Judah Gabriel Himango27-May-06 10:41
sponsorJudah Gabriel Himango27-May-06 10:41 
QuestionConnection String Pin
zaboboa26-May-06 7:44
zaboboa26-May-06 7:44 
AnswerRe: Connection String Pin
Dustin Metzgar26-May-06 8:17
Dustin Metzgar26-May-06 8:17 
GeneralRe: Connection String Pin
zaboboa26-May-06 9:09
zaboboa26-May-06 9:09 
Questionprogram crashes after GC works Pin
asbasir26-May-06 6:11
asbasir26-May-06 6:11 
AnswerRe: program crashes after GC works Pin
Dan Neely26-May-06 8:00
Dan Neely26-May-06 8:00 
GeneralRe: program crashes after GC works Pin
asbasir26-May-06 21:57
asbasir26-May-06 21:57 
AnswerRe: program crashes after GC works Pin
leppie27-May-06 4:42
leppie27-May-06 4:42 
Questioncheck if a function is running Pin
donkaiser26-May-06 6:03
donkaiser26-May-06 6:03 
AnswerRe: check if a function is running Pin
Guffa26-May-06 6:40
Guffa26-May-06 6:40 

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.