I'm trying to make an IDE for a seperate programming language called DarkBASIC.
Everything is going perfectly fine, but I'm trying to be able to show line numbers in the editor, which is a RichTextBox control.
So is there a way to show the line numbers in a RichTextBox control? And if there isn't, is there an alternative?
I am writing a Windows application using VS2005 C# .NET 2.0 and I need to get a list of file names from a web site sub folder (in order to check if there is an updated database file to download). Can anyone give me a SIMPLE method as I have no experience of any web related programming. It would be useful if I could provide a search pattern such as "Databasexxxx.mdb". Many thanks to anyone who can help.
My application will run on desktop and laptop machines world wide. My client wants the app. to check their web site to see if there is an later version of a database and if so download it. I don't really understand "credentials". Will my client have to have some extra software on their web site?. I found the WebClient.DownloadFile method, and that looks really simple. Am I missing something?
In this case it is easy then. You don't need any credentials nor do you want to list the files on the website. You will need someway of figuring out what is the current version of the database in the web site. Say you could use a webservice to accomplish this. Then you need a known set of interval to check for the version. This could be done at the start of the application or after a known time period, may be every 24 hours if the application runs continuously. Finally you download the database to the local machine and do your magic installing/updating into the local db.
WebClient.DownloadFile should do the trick to download the database, here this should help.