Click here to Skip to main content
15,442,338 members

Comments by Szymon Roslowski (Top 13 by date)

Szymon Roslowski 3-Mar-15 12:06pm View     CRLF
Had the same issue this morning and seems like made a similar mistake. This line htmlparser.Parse(sr); takes a StreamReader not a StringReader. var stringStream = new StreamReader(GenerateStreamFromString(html)); htmlparser.Parse(stringStream); (...) private Stream GenerateStreamFromString(string s) { var stream = new MemoryStream(); var writer = new StreamWriter(stream); writer.Write(s); writer.Flush(); stream.Position = 0; return stream; }
Szymon Roslowski 24-Feb-15 10:03am View     CRLF
One of these should help: https://www.google.co.uk/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=sms%20gateway%20c%23%20api
Szymon Roslowski 16-Oct-14 12:25pm View     CRLF
if (cbSelect1.SelectedValue.ToString() != null && cbSelect2.SelectedValue.ToString() != null) Could be replaced with if (cbSelect1.SelectedValue != null && cbSelect2.SelectedValue != null) and that should solve the problem. No need to convert to string at this time. Ps. a Quote from another post: We can convert the integer “i” using “i.ToString()” or “Convert.ToString” so what’s the difference. The basic difference between them is “Convert” function handles NULLS while “i.ToString()” does not it will throw a NULL reference exception error. So as good coding practice using “convert” is always safe.
Szymon Roslowski 6-Aug-14 12:20pm View    
http://blogs.msdn.com/b/lazydeveloper/archive/2010/03/15/using-ado-net-to-work-with-excel-files.aspx
Szymon Roslowski 6-Aug-14 12:14pm View    
Reload the sound file in your form application after it has been replaced on your "Web".