How Reliable Is LastWriteTimeUtc To Synchronize 2 Folder On 2 Different Computers
Apr 28, 2011
how reliable is LastWriteTimeUtc to synchronize 2 folder on 2 different computers? what problems could rise using LastWriteTimeUtc.is there a better way to see if a generic file is of a newwer version?
View 7 Replies
ADVERTISEMENT
Feb 20, 2011
I have my client app installed in many computers, each computer is connected via LAN. Each Client app uses its own SQL database. I need to synchronize the databases in each computer so that every client app has the same data. How can I achieve this using VB.net (VS 2010 , Winforms)
View 1 Replies
Jun 8, 2011
I have a folder on my server(windows 2003) that I would like to copy to all computers running Windows XP on a particular subnet.
View 1 Replies
Aug 23, 2009
I use it as a timer(obviously) to get the lapsed time of an upload. Something that took 2 secs it said 12. [code] Everything looks right. and it seemed to be working. Just in no way did it take 8 or 12 secs to send
View 4 Replies
Feb 16, 2011
Is there relialbe alternative to Timer class in .Net?We are having issues with System.Timers.Timer and System.Threading.Timer, e.g., they start immidietly, or sometimes fire out after long period of inactivity (after 49 days).I've seen that there seems to be a lot of issues with them like here: url...We can not use Forms timer.We are thinking to pause the thread for certain period of time instead of the timer...
View 4 Replies
Jun 29, 2010
I am reading a file and loading the records read to a database. At the end of this process there needs to be a check that the counts match. This code was already written and the comment doesn't give me great confidence in it: ' Description: Get the number of lines in the record file. Thisshould give a good indicator of the number of recordsIt should or it will, using this code?:
Dim i As Integer = -1
Dim line As String = ""
Dim sr1 As StreamReader
[code]....
Then i is returned as the count of records in the file. Is this the best way and is it reliable? Records in the file are delimited with a newline
View 8 Replies
Dec 2, 2010
What is the most reliable path to export data? I have a Access db used by many. I have a button that export the data to the desktop. It works great for most but a few people get a error that it is open exclusively or they need permissions to view.How can I fix this error? [code]MsgBox "This data has been sent to your Desktop", vbExclamation, "Request Complete"
View 7 Replies
Jul 13, 2011
I see so many programs take command-line arguments with flags, for example gcc hello.c -o hello. Of course, I can implement that in my application:
Dim args() As String = Environment.GetCommandLineArgs()
Dim oi As Integer = Array.IndexOf("-o", args)
If oi > -1 AndAlso oi < args.Length Then
CompileTo(args(oi + 1)) 'Or whatever
Else
CompileTo("out.exe") 'Or whatever
End If
But it's ugly and annoying to use, prone to errors, and inefficient. What's the better way that I keep overlooking?
View 3 Replies
May 4, 2012
Does anyone know of a reliable way to cancel the ItemCheck event on a CheckedListBox? I am in a situation where the ItemCheck event should basically discard changes on a form, however, if the person decides to cancel the discard I would like the ItemCheck event not to fire so as not to change anything.
View 2 Replies
Jan 20, 2012
I eyed VB.NET 2010 Express and created the damn app. It's up and running and it does what it's supposed to do (in v1). Now I'd like to distribute it for free while:
(1). Have a reliable way of knowing (and everybody can check this out) the number of downloads.
(2). The app cannot be passed from one user to another, but has to be downloaded from the reputable biz (there can be more than one biz) that accurately provides the number of downloads.
(3). I can have total control over the app (once it's downloaded by the users), that is if I want to inform the users of updates or whatever, or if I want to add some ad windows to the form I can do it whenever I want and how I please.
How do I do (1) to (3)? What am I supposed to read to do (3)? ADO.NET and ASP.NET? Any shortcut? What's the easiest way of doing it? I'm not sure I'm looking for a career in programming, for now I just want to take this app off my shoulders and go back to daydreaming.
View 4 Replies
Aug 20, 2010
We have a VB.NET program that needs to periodically call a function in an external, unmanaged DLL to communicate with our legacy application. We are having a problem with the application (seemingly) randomly not being able to find the DLL with the unmanaged code. Currently we use DECLARE FUNCTION blah LIB for the unmanaged code. Would it be better/more reliable to use DllImportAttribute instead? Or am I missing something else?
View 1 Replies
Sep 27, 2009
[Code]....
synchronizing a combobox with a textfield. I have a form with a textfield and a combobox. The combobox is populated with the department name from the database when the form loads. I would like the textbox to display the corresponding department number when the user selects a department name from the combobox. I have tried using the SelectedIndexChanged event of the combobox but I can't seem to code it to work. This is the code I'm trying to use but it is displaying "DEPARTMENT" in the textbox. Department Code is the primary key of the table.
strSQL = "SELECT * FROM DEPARTMENT"
Dim da = New OracleDataAdapter(strSQL, cn)
da.Fill(dSet, "DEPARTMENT" )
[Code]....
View 8 Replies
Jan 6, 2011
I'm trying to get my application to restore the default values of my application settings but every time I click the Synchronize button it says:
No user.config files were found in any of the following locations.
I have never before tried to synchronize this application and am working with Visual Studio 2010. [URL].
View 2 Replies
Aug 15, 2011
I have a small application in ms access for student information. which is on my sever.now I have same application in .net and sql server which is online in my website, while access application is on my pc...Now I want that, If i make changes in my access application, the data must be copied to my online application automatically,Same thing i want vice versa,means if i make changes in my online application, the data must be copied to my desktop database.
View 1 Replies
Jul 18, 2009
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
If ListBox1.Text = "kg" And ListBox2.Text = "lbs" Then
[code]....
View 2 Replies
Dec 18, 2011
I have two datagridview with same columns. When user resize the column of one of the datagridview during run time, then another datagridview column will synchronize to resize as well..
View 2 Replies
Sep 29, 2009
With my program I wanted to change the fixed connection string to a User entered one. So in the application settings I added DBConnectionString as a user define String. If the string if empty, it shows the window where one can add the server, database and user name / password. If you press the OK button, it saves the settings:
Private Sub LDBOKBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LDBOKBtn.Click
' ----- Server name is required.
If (Trim(LDBServer.Text) = "") Then
MsgBox("The Server or Host name is required.", _
[code]....
The problem is that when you press the same button to show the System Settings again, the ConnectionString is empty again. So nothing was saved.
View 3 Replies
Jul 5, 2011
I have written a stupid backup utility that copies new or modified files. That's fantastic until I come across files that are 11 GB in size that have been modified. I have a feeling I can compare the file to be backed up and the file that will be over-written (old version of file) and "synchronize" the file instead of copying the entire 11 GB.
View 6 Replies
Jan 26, 2010
How can i synchronize dragged controls (in my application), so they maintain their relative position to each other? is there some API function or .net method that can do this?
View 5 Replies
Nov 16, 2010
I have a class that contains a List(of T) used in a multithreaded application. I have three methods Get, Add and Remove where these access and modify the List(of T). I was using SyncLock to lock m_List any time I queried it for the desired object as well as when I added or removed objects. However I'm curious as to if there is a performance gain by simply locking m_List when I add an object or remove an object as opposed to when I'm searching for a desired object?
[Code]...
View 1 Replies
Aug 19, 2009
I've got an XML file which is a pain to manually update. So I was thinking of creating a small app which synchronizes this data for me based on data from an Excel Sheet or something.
The XML schema looks like this:
<Data>
<Level1 value="Canada">
</Level1>
<Level1 value="Chile">
[code]....
View 3 Replies
Mar 14, 2012
I sometimes come across patterns or common practices that I do not agree with. I have a clear opinon of what is considered "good design", which is mainly based on my understanding of abstraction and creating layers.IMO, the core of an application is it's object model. It's a hierarchic model where one object references other objects or lists of them. That's a memory-internal model. For example, a house object references a list of rooms referencing lists of furniture.An object is identified by it's reference. There are no IDs or PKs in that layer.Saving/Loading data is an additional feature. Sure, no application will do without, but it's based on top of the core of the application. I could write an application that works very well without loading/saving, and for version 2 I will think about whether to save data to a database or an XML file. Merely this fact proves that a database layer is not the lowest. I've never agreed with that three-tier model - even if you call me unteachable.
In addition to all application objects, there are Datasets - and that's my problem now. They can be considered as a copy of what is already present in the application's object model. Its from a different, table-oriented view. As both structures exist in parallel, there's the need to synchronize the DataSet with the (rest of the) application's objects.That's the task that I am always struggling with, and I ask how you handle it. I know this is a major design question but, fortunatelly, I could quite get around this problem so far.The only solution I can imagine is maintaining additional relation lists. For example, whenever the property of a room object changes, that change must be reflected in the associated DataRow in the DataSet. For this purpose, I need a look-up table that tells me the PK of the given room in the database. It requires a lot of additional efforst to do all the synchronization.Again, the house or room object itself does not have a PK and it won't get one because on that layer, it doesn't even know that a database exists.
View 11 Replies
May 19, 2011
synconize scrolling of two webbrowser controls in VB?
View 2 Replies
Feb 16, 2011
I am using Mail.dll Commercial component. I can read the unseen or unread messages in my windows application. IF i open the mail using the [URL] then I cannot get the mail in windows application. Is there any way to synchronize the gmail mails
View 1 Replies
Sep 12, 2011
We have a reporting app thats needs to update it's charts as the data gets written to it's corresponding table. (the report is based off just one table). Currently we just keep the last read sessionid + rowid (unique combo) in memory and a polling timer just does a select where rowid > what we have in memory (to get the latest rows added). Timer runs every second or so and the fast sql reader does it's job well. So far so good. However I feel this is not optimal because sometimes there are pauses in the data writes due to the process by design. (user clicking the pause button on the system that writes data). Meanwhile our timer keeps hitting the db and does not get any new rows. No errors or anything. How is this situation normally handled. The app that writes the data is separate from the reporting app. The 2 apps run on different machines. Bottomline : How to get data into a c# app as and when it is written into a sql server table without polling unnecessarily.
View 4 Replies
Sep 15, 2011
I'm writing a desktop application that uses the main access database that will be hosted on a central server, but there will be a laptop with the app on that has an offline mode so records can be created offsite. When the laptop returns I want it needs to be synced back to the main database.
Has anybody got any pointers on a way to do this, I've briefly read about JRO but is there an alternative / better method?
Originally, I was just going to write some custom code to do this, but thought I'd check to make sure there wasn't something already out there.
View 4 Replies
Feb 2, 2007
I have a multi-threaded application with several datasets that are read/written to from a couple threads. I have read that datasets can handle multiple readers and one writer. I have synclocks around all dataset writes and no synchronization around reads. I am experiencing random "Index was outside the bounds of the array." exceptions where a dataset item is in a conditional statement, for example:
[Code]...
View 4 Replies
May 5, 2010
I have application in .net 2.0 in which I have a DataTable object globally in my application and have different dataviews in whole application.
When an action performed i have create many threads lets say 5 in which data is read from different dataview, meanwhile while 2/3 threads are reading data(not all 2 more left to read data) a thread write data in datatable. So we get exceptions like "Enumeration update" or "parameter not null" type.
I have use ReadWriteLock for this but do not find any luck it gets stop on ReaderWriterLock.AcquireWriterLock().
View 1 Replies
Apr 23, 2009
I have a windows application that need to process som quite time consuming jobs. In my first try i did all processing under
the form thread. The result was bad response and update of the form due to the heavy jobs.To get around the problem with bad response from the form i created a new class "processing" where i put all the data processing. Then i instanciated a background worker where i in the "doWork" sub created a new instance of "processing".The "processing" class creates a timer from system.timer, and the timer drives the processing.On the Timer event Elapsed the timer starts a new thread from the thread pool.
My problem is now when i want to asynchronously close the background worker (with the corresponding function call what ever it is called ...) there is still a timer thread out there that causes exceptions for me.
1. How can i close my background worker and at the same time have the timer to be stopped?
2. Is there a way to synchronize the timer event so that the timer executes from the background worker thread?
3. Is there a better approach for me to adapt?
View 3 Replies
Aug 28, 2010
I am working on a windows application project on NIST time synchronization, but can't get a proper solution for it. If anyone can send me the code to synchronize time from the global time server in VB.net or C # code
View 2 Replies