I know that it can be done with FTP, which might be useful to you - I dont have any code to hand but you would
1. Create an FtpWebRequest
2. Set the method property to ListDirectoryDetails
3. Set credentials
4. Call the GetResponseStream method
5. Pass it to a StreamReader and use the readline function to iterate though the lines in the file
Note that you get more than just the filename, you get some other information too such as the size, etc and folders are included so you might need to format the responses in some way.
How to make my form acts as a dialog box when it is called from a menu item.
I could do this using Form.ShowDialog() within any event of any control on a form.
But when I called this function on the click event of a menu item, I got the following exception . "Forms that are not top level forms cannot be displayed as a modal dialog. Remove the form from any parent form before calling showDialog"
Thanks Jeff .
It did not work. But you helped me rethinking about my code and discover my fault .
The problem was that I defined the MdiParent property of the dialog form to be this
My code was some thing like this.
MyDialogForm dialogForm = new MyDialogForm();<br />
dialogForm.MdiParent = this; // This was my fault<br />
First I do not what is TX control.
But I think that you can add all .dll files that appears after installing that control. add them to your code as reference.
If you do not want to ask your client to install that control first, you can create your own installation wizard that implicitly installes that control
My problem is when i merge one dataset with the previous one, the content of the previous dataset disapear.hence i only get one dataset which is the last merge operation.
I keeps loosing the prevoius merge operation.
Please if you can give me an example, on how i can retain the previous merge.
Get the latest files from VSS.
There are several projects in the solution.
These projects refer to a web reference.
All projects build fine except one of them.
The problem is to do with the web reference.
Under web reference there is a reference to MarketdataService which is the webservice.
But every time I delete and add the web reference, it adds the extension 1 to the end of it i.e. MarketDataService1
On the hard drive I can see the new folder is added and even deleting it and re-adding the web reference still adds the extension 1 to the web reference name.
Not sure why this is happening.
Sorry - I should have read your post better (hint - you don't need to put a new sentence on a new line as it makes it harder to read). The issue is that the system thinks that you already have MarketDataService installed in IIS. You need to open IIS and remove the old version before you attempt to bind to the one in VSS.
Because the installer didn't put the data file there. And neither should your program. If it needs to create data files it needs to put them in the correct place - and a subdirectory of Program Files isn't it.
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."