Click here to Skip to main content
15,892,059 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionMSI Programming Pin
tonyalex26-Mar-07 4:46
tonyalex26-Mar-07 4:46 
AnswerRe: MSI Programming Pin
Vasudevan Deepak Kumar28-Mar-07 7:48
Vasudevan Deepak Kumar28-Mar-07 7:48 
QuestionRaising an event from a composite control Pin
Richard Jones26-Mar-07 4:28
Richard Jones26-Mar-07 4:28 
AnswerRe: Raising an event from a composite control Pin
Richard Blythe28-Mar-07 6:03
Richard Blythe28-Mar-07 6:03 
GeneralRe: Raising an event from a composite control Pin
Richard Jones30-Mar-07 2:40
Richard Jones30-Mar-07 2:40 
GeneralRe: Raising an event from a composite control Pin
Richard Jones30-Mar-07 9:27
Richard Jones30-Mar-07 9:27 
QuestionRemoting with a Windows Service as a component host Pin
pezi_pink26-Mar-07 4:20
pezi_pink26-Mar-07 4:20 
QuestionEncoding StreamReader in C# Compact Framework Pin
vonLochow26-Mar-07 2:34
vonLochow26-Mar-07 2:34 
Im trying to read a xml-file with a StreamReader. For the moment I'm using the following code.

<br />
streamReader = new StreamReader(stream, System.Text.Encoding.Default);<br />
string feedData = streamReader.ReadToEnd(); <br />


I'm using System.Text.Encoding.Default so that I can get some swedish characters working. But I'm having problem when reading a xml-file that's encoded with UTF-8. In the beginning of the xml-files you have the encoding for the file, so I have tried this code:

<br />
streamReader = new StreamReader(stream, System.Text.Encoding.Default);<br />
string feedData = streamReader.ReadLine();<br />
if(feedData.indexOf("UTF-8") != -1)<br />
   streamReader = new StreamReader(stream, System.Text.Encoding.UTF-8);<br />
<br />
string feedData += streamReader.ReadToEnd(); <br />


My plan was to read the first line, check if it's encoded with UTF-8 and then change the stream. This doesnt work at all... Is there anyway you can change the encoding for a stream once it's initialized or can you encode the string afterwards?
QuestionGenerating MS Project File Pin
fulbright25-Mar-07 20:45
fulbright25-Mar-07 20:45 
QuestionBook on Plugin-Technology? Pin
Tomerland25-Mar-07 19:42
Tomerland25-Mar-07 19:42 
AnswerRe: Book on Plugin-Technology? Pin
Pete O'Hanlon27-Mar-07 1:14
mvePete O'Hanlon27-Mar-07 1:14 
QuestionStyle / customize the .NET Treeview Control (vertical spaces between nodes) Pin
jnkurz024-Mar-07 7:57
jnkurz024-Mar-07 7:57 
AnswerRe: Style / customize the .NET Treeview Control (vertical spaces between nodes) Pin
Christian Graus24-Mar-07 8:06
protectorChristian Graus24-Mar-07 8:06 
QuestionRe: Style / customize the .NET Treeview Control (vertical spaces between nodes) [modified] Pin
jnkurz025-Mar-07 1:32
jnkurz025-Mar-07 1:32 
QuestionNeed help with forms Pin
thesad24-Mar-07 1:01
thesad24-Mar-07 1:01 
AnswerRe: Need help with forms Pin
Christian Graus24-Mar-07 7:59
protectorChristian Graus24-Mar-07 7:59 
GeneralRe: Need help with forms Pin
thesad24-Mar-07 8:45
thesad24-Mar-07 8:45 
GeneralRe: Need help with forms Pin
Christian Graus24-Mar-07 13:19
protectorChristian Graus24-Mar-07 13:19 
Question.NET-BroadcastEventWindow - No Disk Pin
gmarian23-Mar-07 19:32
gmarian23-Mar-07 19:32 
AnswerRe: .NET-BroadcastEventWindow - No Disk Pin
Luc Pattyn24-Mar-07 2:20
sitebuilderLuc Pattyn24-Mar-07 2:20 
GeneralRe: .NET-BroadcastEventWindow - No Disk Pin
gmarian24-Mar-07 3:07
gmarian24-Mar-07 3:07 
Question.NET cannot find mfc42.lib?? Pin
Wheatbread22-Mar-07 11:35
Wheatbread22-Mar-07 11:35 
AnswerRe: .NET cannot find mfc42.lib?? Pin
Wheatbread22-Mar-07 12:54
Wheatbread22-Mar-07 12:54 
QuestionPorting VS60 projects to .NET 2003 Pin
Wheatbread22-Mar-07 10:07
Wheatbread22-Mar-07 10:07 
AnswerRe: Porting VS60 projects to .NET 2003 Pin
Christian Graus22-Mar-07 10:21
protectorChristian Graus22-Mar-07 10:21 

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.