hi Vilmos, Not like google alert that need to take cred's of google a/c. so i need to download google alert api to integrate into .net application, please send if you have any idea from where we can download freely google alert api.
afaik it can't be done. The google alert app is doing all the work on the server and just sends the registered e-mail address messages when something comes in. Having the API will allow what? A client coded front end to a web-app.
I've built a clientServer chat that each client can send message to all the connected clients, event fired when new client connect or disconnect.
What i'm trying to do now is when a new client connects to the server he will see all the clients that already connected to the chat.
Do you use a database on server?
If you are using when user connects write a record into a table with clients ip address, and when user disconnects delete that record. In case of client shutdowns a computer without disconnecting server , ping clients from server repeating with a time interval and try to understand if client is still accessable.
You've just answered your own question. When a user connects, get all of the connected users from the array. When a user disconnects, or you find a client is no longer accessible tell all connected clients to remove that user.
My Enum is residing in main application as it is the main user of the Enum. I added class library to solution and would like this Enum to be shared from class library without re-defining it. Also don't want to move Enum declaration to class library since the code that mainly using this Enum residing in main application.
Well you should put your enum in the library regardless of what else is going to use it.
But if you insist on having it in your form just make it public and add a reference to the .exe from
If at first you don't succeed ... post it on The Code Project and Pray.
This is absolutely better idea also it is also the best solution that comes to my mind. For your requirement the only solution is creating a base assebmly can be named as InfrastructureLayer that referenced by all other assemblies.
I have xml file format mentioned "code" section.
In my program, i know Failure_ID(it comes from some other binary file), based on "Failure_ID" i want to read "Name" value from XML.
i want to read "Name" thru "Failure_ID".
Please help me to write code for this.
I am using C# windows Applcation, .net 3.5 framework
<Failure_ID="1" Name = "Failure_1" Description = "TBD" />
<Failure_ID="2" Name = "Failure_2" Description = "TBD" />
<Failure_ID="3" Name = "Failure_3" Description = "TBD" />
I would have suggested that you use SelectSingleNode (member of XmlDocument), but that won't work since this is not valid XML. The problem is this part <Failure_ID="1", which as far as I can see quickly is never valid XML, and certainly not in this case. The problem is, there is either no element name or no attribute name (but it's impossible to tell which is missing). I suggest you change it to <Failure ID="3" Name="whatever" Description="Something">
Or if you're not in a position to change the format, use an other way to read the data - not as XML because that's not what it is.
If you go for the first option, the code to select the Name based on the ID could be something like
I have a form (ucTabs) with two labels (tslProgress: "Progress" tslStatus: "Status") and a progressbar (tsProgBar).
When a series of methods in the DAL layer are executed, I want to increment the progress bar and change the tslStatus to "Processing xxxx method " + "25%", "Processing yyyy method " + "50%", "Processing zzzz method " + "75%", etc.