It's not that hard as you probably see it. You will need one additional thread to listen for requests. Some samples can be found on the internet (try searching HTTPListener, also on http://codeproject.com). There is also TCPListener class which has more clear examples and you can benefit from it as well.
The most attention is needed to be focused on the method which will be handling requests received from GetContext() of HTTPListener....
User Profile
Collapse
-
You can configure your Apache to serve ASP.NET pages for you. Then you could write a web site which would have some controls on it to control your application. This would probably force you to override System.Web.UI.P age or even controls used on the page (lets say it would be Buttons). Than you would write a triggers to execute local operations to operate on the local application.
The other possibility, which surely will be more lightweight,...Leave a comment:
-
I bet these are not pictures but only some informations about them stored in files which names are similar.
Are those files large or small? Look inside them and you'll find what informations are there.Leave a comment:
-
This happens when you declare a variable without assigning any value to it. It is not an error but compiler warns you that you might have forgot doing so.
You can leave the field _definitionName undeclared, however omitting setter in the property which wraps this variable you have disabled the possibility of assigning a value to this variable. You should consider whether this variable is needed or you can just delete it.
...Leave a comment:
-
Leave a comment:
-
Certainly it depends on the format of XML file. You haven't specified anything about how the XML file would look like.
If the format is the same in whole XML file you can read first group of elements, build appropriate columns and continue reading the file storing data in some dataset structure.
While reading consider using XmlReader which is fast.
It would be harder if XML contains hierarchical data...Leave a comment:
-
Strange enough.
I solved it by copying 'WINDOWS\Micros oft.NET\Framewo rk\v2.0.50727\C onfig\machine.c onfig' from different computer.Leave a comment:
-
Problem with instantiation XmlSerializer
I've a problem while creating new instance of XmlSerializer. I thought it could occur because of improper solution platform. But I checked all possibilities.
Machine config:- Windows XP SP3
- .NET 3.5 SP1
Any suggestions how to track the problem?
Here's what I got:
...Code:System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException:
-
Maybe you can use some samples? There are some ready controls:- http://www.codeproject.com/KB/docvie...endarView.aspx - pretty nice, LGPL licence,
- http://www.codeproject.com/KB/select...ardayview.aspx
I guess there are some more.Leave a comment:
-
You may also be interested in watermark effect on ComboBox control.
Here's ready-to-use implementation:
http://www.aaronlerch.com/blog/2007/...edit-controls/...Leave a comment:
-
Did you check "Thrown" checkbox for whole "Common Language Runtime Exceptions"?Leave a comment:
-
How to register.NET add-on for Office Word
What is the most appropriate way of creating .NET add-ons and registering them on Office Word?
Where can I read about it?
How to use an add-on created with Office 2007 installed with older Offices? Is it possible?
No activity results to display
Show More
Leave a comment: