Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need advice for ListView form

Status
Not open for further replies.

Tve

Programmer
May 22, 2000
166
FR
Hi,

I am currently learning C# and I would need some advice from experienced programmers.

I am currently writting a small app that is comparable to a printing queue except that the app monitors directories for files and then processes them one by one.

This is what I have done so-for: I have a form with a a FileWatcher than monitors a directory and populates a multi-column ListView. A Timer object scans the list on 10 sec basis and if a File is marked "Queued", executes it on a separate thread using the Backgroundworker. The Listview on the form looks something like this:
[tt]
File Status Date Directory

abc.dat Finished 17/09/2007 C:\temp\dir1
def.dat Running 17/09/2007 C:\temp\dir2
ghi.dat Queued 17/09/2007 C:\temp\dir1
jkl.dat Queued 17/09/2007 C:\temp\dir1
[/tt]

Here are my questions:

[ol]
[li]Does the general approach seem reasonable?[/li]
[li]I am looking for an event to create a delegate that runs on ListViewSubItems, when I value is changed. I found standadard events like clicking, but not one that runs when a value is changed by code. I must be missing something...[/li]
[li]The next step is to modify the form to create a main form with client forms that connect to the main (server) form and ave a listview that stays in sync with the main form (like a printing queue). I want to stay on .Net 2, so not WCF. I suppose that I should use Stream Sockets. Is this th best way?[/li]
[/ol]

Thanks for any advice you can provide.


AD AUGUSTA PER ANGUSTA

Thierry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top