Search results for query: *

  1. N

    [SQLite] File sharing violation

    Hello, My C# application using Sqlite DB to store data. As I know this db allows multiple read at the same time, but only one write at a time. I want to run multiple instances of the same app and each one will read from the same db file. and here is the error that I get: error happens when...
  2. N

    SystemFileWatcher event not raised after File.WriteAllLines

    Chris Lewis from MSDN forums suggested very good solution that I would use: He suggested to manually update the LastWriteTime of the file, and its works! https://msdn.microsoft.com/en-us/library/system.io.filesysteminfo.lastwritetime(v=vs.110).aspx yoohoo! :excitement:
  3. N

    SystemFileWatcher event not raised after File.WriteAllLines

    Tried to use NTFS file format network drive and it not help :sorrow:
  4. N

    SystemFileWatcher event not raised after File.WriteAllLines

    my code works, the problem is how it works on lan drive/network location...
  5. N

    SystemFileWatcher event not raised after File.WriteAllLines

    I did it because I start multiple instances of this app and I want the event to raise only when another instance of this app starts... btw I think the event fire anyway even if its after the code. about my question: I found forum post at MS or somewhere where they say to decrease/increase the...
  6. N

    SystemFileWatcher event not raised after File.WriteAllLines

    I just tried it, error event also not raised...:miserable: Idk what to do, I can't proceed with my app update because its depends on this stuff I though about another ways but using FileSystemWatcher is the most efficient way is there any other way to do that? but without timers?
  7. N

    SystemFileWatcher event not raised after File.WriteAllLines

    Hello, Thank you for the replay! I did a little research and found out that this problem occurs when I try to write to file on lan drive (network location) I have USB drive connected to my router and the file is stored there, and in my app I specify the IP address and the directory. what happens...
  8. N

    SystemFileWatcher event not raised after File.WriteAllLines

    Hello, My app write to file and I also set systemfilewatcher on that file to monitor changes. filewatcher is used for case when there is more than one instance of this app is running and they all will write to the same file so all the other instances of this app will be updated. when I use...
  9. N

    How to make userControl resize (height only) depends on textbox actual height?

    Solved this problem by using Label with AccessText: <Label x:Name="Task" FontWeight="Bold" FontSize="14" Padding="0" Margin="2,0" ScrollViewer.VerticalScrollBarVisibility="Disabled" VerticalAlignment="Top"> <AccessText x:Name="TaskText" TextWrapping="WrapWithOverflow"...
  10. N

    How to make userControl resize (height only) depends on textbox actual height?

    Hello, I have userControl and textbox in it. I want to make userControl resize itself depends on textbox actual height. my textbox height is changing when I start new line. but userControl size can only grow. I used this binding in userControl: Height="{Binding ActualHeight, ElementName=txtTask...
  11. N

    Question Query to select from 2 tables (info inside)

    After asking in C# IRC channel I got the answer: SELECT ID, CASE WHEN EXISTS (SELECT ID FROM Log AS b WHERE b.ID = a.ID) THEN 1 ELSE 0 END AS IsActive FROM Clients AS a
  12. N

    Question Query to select from 2 tables (info inside)

    Hello! I don't even know what to search in google for this question, so I hope someone here can help. What I want to do is: I have two tables: Clients and Log they both have ID field which is the same Clients table has list of all clients with their details and there is field called IsActive...
Back
Top Bottom