15,887,135 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Szymon Roslowski (Top 13 by date)
Szymon Roslowski
3-Mar-15 12:06pm
View
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
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
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".
Szymon Roslowski
6-Aug-14 11:53am
View
replace textBox1.AppendText("Friend: " + receivedMessage); with textBox1.AppendText("Friend: " + receivedMessage + Environment.NewLine);
Szymon Roslowski
6-Aug-14 11:45am
View
Could this help ?
http://msdn.microsoft.com/en-GB/library/aa287535(v=vs.71).aspx
Also this works in a similar way as app.config:
http://www.codeproject.com/Articles/1966/An-INI-file-handling-class-using-C
Szymon Roslowski
28-Mar-14 6:03am
View
Hi
That depends on what plotter you are using. It is safe to say that whatever language your plotter is using it will be similar to HPGL or a clone of it. http://en.wikipedia.org/wiki/HPGL
The way to communicate with the plotter is usually via serial, virtual serial over USB or parallel port of your computer.
Here is a good starting point if your plotter is a Roland :
http://omar.toomuchcookies.net/node/2009/11/scavenged-pen-plotter-roland-dg-dxy-990/comment-page-1/
I haven't used plotters in years so this info may be outdated but it is certainly a good starting point.
As to the API there isn't one as such as the communication happens by directly talking to the device by either serial :
http://msdn.microsoft.com/en-us/library/system.io.ports.serialport(v=vs.110).aspx
or parallel port:
http://www.codeproject.com/Tips/441815/Parallel-Port-Control-with-Csharp-NET
Thanks
Szymon Roslowski
29-Jan-14 12:15pm
View
Wouldn't setting AutoGenerateColumns="true" solve your problem ?
Szymon Roslowski
29-Jan-14 10:51am
View
Perhaps this is not the best time to change the hid library now but this one reads the device asynchronously :
http://www.codeproject.com/Tips/530836/Csharp-USB-HID-Interface
Szymon Roslowski
29-Jan-14 10:47am
View
Check This :
http://www.codeproject.com/Articles/153938/A-Complete-TCP-Server-Client-Communication-and-RMI
Szymon Roslowski
29-Jan-14 10:13am
View
What do you mean by "automatically by default" ?
Szymon Roslowski
29-Jan-14 10:03am
View
have a look in here:
http://www.codeproject.com/Articles/153938/A-Complete-TCP-Server-Client-Communication-and-RMI
Show More