Click here to Skip to main content
15,917,953 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to save images into Access DataBase Pin
Dave Kreskowiak3-Jul-07 6:46
mveDave Kreskowiak3-Jul-07 6:46 
AnswerExpanding on what Dave said... Pin
leckey3-Jul-07 8:10
leckey3-Jul-07 8:10 
QuestionDrag and drop to the cursor Pin
Gene Arnold3-Jul-07 2:02
Gene Arnold3-Jul-07 2:02 
AnswerRe: Drag and drop to the cursor Pin
originSH3-Jul-07 3:01
originSH3-Jul-07 3:01 
Questionhow can i save a C# form at run time ? Pin
B.A3-Jul-07 2:01
B.A3-Jul-07 2:01 
AnswerRe: how can i save a C# form at run time ? Pin
Martin#3-Jul-07 2:17
Martin#3-Jul-07 2:17 
AnswerRe: how can i save a C# form at run time ? Pin
Vikram A Punathambekar3-Jul-07 2:18
Vikram A Punathambekar3-Jul-07 2:18 
QuestionProblem with MemorySream Pin
wesch3-Jul-07 1:58
wesch3-Jul-07 1:58 
Why does the following code snippet

MemoryStream stream = new MemoryStream();
XmlTextWriter writer = new XmlTextWriter(stream, Encoding.UTF8);
writer.WriteStartDocument();
writer.WriteElementString("Test", "Test");
writer.WriteEndDocument();
writer.Flush();
stream.Seek(0, SeekOrigin.Begin);
Console.WriteLine(Encoding.UTF8.GetString(stream.ToArray()));

produce the following output:

?<test>Test

The question mark at the beginning is meant.
I've tried different encodings, it does not happen with Default and ASCII.

When I use a StreamReader I can get it to work, but I will understand where the problem is.
AnswerRe: Problem with MemorySream Pin
WillemM3-Jul-07 2:31
WillemM3-Jul-07 2:31 
GeneralRe: Problem with MemorySream Pin
wesch3-Jul-07 2:37
wesch3-Jul-07 2:37 
AnswerRe: Problem with MemorySream Pin
Luc Pattyn3-Jul-07 2:42
sitebuilderLuc Pattyn3-Jul-07 2:42 
QuestionMagnification Algorithm Pin
free_soul4243-Jul-07 1:38
free_soul4243-Jul-07 1:38 
AnswerRe: Magnification Algorithm [modified] Pin
small_programmer3-Jul-07 3:19
small_programmer3-Jul-07 3:19 
GeneralRe: Magnification Algorithm Pin
free_soul4244-Jul-07 7:42
free_soul4244-Jul-07 7:42 
QuestionPrinting dynamically in C#.net window application Pin
kk_upadhyay3-Jul-07 1:25
kk_upadhyay3-Jul-07 1:25 
AnswerRe: Printing dynamically in C#.net window application Pin
originSH3-Jul-07 1:32
originSH3-Jul-07 1:32 
QuestionWindows Authentification Problem. Pin
lygine ng lee chuang3-Jul-07 1:22
lygine ng lee chuang3-Jul-07 1:22 
AnswerRe: Windows Authentification Problem. Pin
originSH3-Jul-07 1:34
originSH3-Jul-07 1:34 
GeneralRe: Windows Authentification Problem. Pin
lygine ng lee chuang3-Jul-07 2:11
lygine ng lee chuang3-Jul-07 2:11 
Questionreporting Pin
omarikom3-Jul-07 0:40
omarikom3-Jul-07 0:40 
AnswerRe: reporting Pin
Sathesh Sakthivel3-Jul-07 1:11
Sathesh Sakthivel3-Jul-07 1:11 
QuestionError: 80045901 Initializing SQL Server Reconciler failed. Minor error: 29045. Pin
fakhirov3-Jul-07 0:39
fakhirov3-Jul-07 0:39 
AnswerRe: Error: 80045901 Initializing SQL Server Reconciler failed. Minor error: 29045. Pin
Sathesh Sakthivel3-Jul-07 1:09
Sathesh Sakthivel3-Jul-07 1:09 
Questiontx text control Pin
WhiteGirl233-Jul-07 0:09
WhiteGirl233-Jul-07 0:09 
AnswerRe: tx text control Pin
Giorgi Dalakishvili3-Jul-07 0:13
mentorGiorgi Dalakishvili3-Jul-07 0:13 

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.