dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: KGCole

Page 1 of 2 1 2

Search: Search took 0.04 seconds.

  1. Replies
    3
    Views
    489

    Re: Insert with Null

    I don't know much about database, Makis, but I believe you can set your unique field to automatic so a unique ID will be inserted with each record. After that's done then perhaps you can alter your...
  2. Replies
    25
    Views
    2,718

    Re: GetLastWriteTime

    If I put a breakpoint on the using declaration and let it run to that point, then run the code through after the break, I don't get the error. Don't know quite what to make of that. If I don't have a...
  3. Replies
    25
    Views
    2,718

    Re: GetLastWriteTime

    I'm not sure I constructed this using statement correctly. My code still gets interrupted with the locked process error. Could you tell me what is wrong with this snippet?



    Private...
  4. Replies
    25
    Views
    2,718

    Re: GetLastWriteTime

    Sorry, had to be away from things for a while. On this subject, I put a method together to test whether the changed file is released, but I haven't been able to get the exception for the error...
  5. Replies
    25
    Views
    2,718

    Re: GetLastWriteTime

    I have doubts about that after what you said about partial file info. I don't want to jeopardize file integrity by using a means like VSS if it leads to inferior process. Quality is preferable to...
  6. Replies
    25
    Views
    2,718

    Re: GetLastWriteTime

    I think my objective is to create a backup utility that syncs between two folders on a pc in a timely manner. I suppose I'm comparing what I can create with other applications, but I'm learning what...
  7. Replies
    25
    Views
    2,718

    Re: GetLastWriteTime

    It's conjecture that the file is copied, but the open, locked file is synced to another location immediately after a change is saved. Whether it was by VSS or not, I can't say. I don't have access to...
  8. Replies
    25
    Views
    2,718

    Re: GetLastWriteTime

    It copied the open file to the target location while it was open and immediately after it's last saved change. I've done some reading on this over the net and I think how this is being accomplished...
  9. Replies
    25
    Views
    2,718

    Re: GetLastWriteTime

    I dunno, Arjay...I know what you mean about a file being locked. I've run into that scenario on a general basis with open files. But I downloaded a popular syncing program on a trial basis to see...
  10. Replies
    25
    Views
    2,718

    Re: GetLastWriteTime

    I integrated your idea into my code, Arjay...I'm having a problem with file access, though. I've got a file open in a graphics editor, and when I save the file the right notifications come up, but I...
  11. Replies
    25
    Views
    2,718

    Re: GetLastWriteTime

    Thanks Arjay, I'll look this over and see how I can implement the idea to solve my notification issues. I'll probably have questions later on.
  12. Re: Dim statement not working in vb.net button code

    Your MsgBox() line is C# Valeriegn, as well as your use of the semi-colons in your Dim statements. Your xlWorkSheet.Cells(2, 2) may need to be xlWorkSheet.Cells(2, 2).value. I'm not familiar with how...
  13. Replies
    25
    Views
    2,718

    Re: GetLastWriteTime

    I read through the fsw material again, but that's pretty much what I have coded. I'm still wondering how to take into account that multiple events are delivered when one file is changed; for...
  14. Replies
    25
    Views
    2,718

    Re: GetLastWriteTime

    I'm not sure what you mean by subscribe to the last change event, Arjay.
  15. Replies
    25
    Views
    2,718

    GetLastWriteTime

    I have a line of code in an onChanged event for a FileSystemWatcher, and have not gotten the result that I want. Here's the code:



    str = "SELECT Base, Target FROM Backup WHERE...
  16. Re: Dim statement not working in vb.net button code

    I don't know any C#, Valeriegn, but don't you have to instantiate your "xlWorkBook" and "xlWorksheet" as "New xlWorkBook", etc. first? Have you tried to assign a value to strTest and then do...
  17. Replies
    6
    Views
    603

    Re: File Explorer application permissions

    The code I've used from the article specifies any directory under the C:\ drive. I suspect in the future as I work with this I'll draw in all drives, which from what you say means a user will have to...
  18. Replies
    6
    Views
    603

    Re: File Explorer application permissions

    The solution to this turns out to be what you suggested Arjay. I read an article that suggested checking out the application properties and found the program manifest. It had comments on it that...
  19. Replies
    6
    Views
    603

    File Explorer application permissions

    I just finished reading an article on the site here, and put together an app that is a File Explorer type application. I've got the application to compile and run, but I'm having a problem with...
  20. Replies
    2
    Views
    696

    Re: ListView column reference

    Found out the answer to that question as well:


    LstVwPlanBackup.Items(LstVwPlanBackup.FocusedItem.Index).SubItems(1).Text.ToString()

    The "Text" property or member is the difference. It returns...
  21. Replies
    2
    Views
    696

    Re: ListView column reference

    Well, for those that may be looking at this thread I have found the answer to my question:


    LstVwPlanBackup.FocusedItem.Index

    That refers the index of the selected item in the ListView.

    It...
  22. Replies
    2
    Views
    696

    ListView column reference

    Hi, I just put a ListView control on a Windows Form, and have set it to have two columns. I'm trying to build a method that uses the selected item of the ListView to find info in the database. The...
  23. Re: List.Add not set to an instance of an object

    Thanks y'all, that was exactly the problem. It never ceases to amaze me how basic things like that make the difference. Hey Arjay, I don't know if that code I posted was good for you to review on our...
  24. List.Add not set to an instance of an object

    Hi, I've got a method where I'm trying to add an object to a list, and Visual Studio debug gives me an error that what I'm trying to add is "not set to an instance of an object". I set my list to be...
  25. Replies
    19
    Views
    1,854

    Re: FileSystemWatcher .Path string

    Here's the basic method I use to read my database into the listbox. Nothing fancy, just using OleDbDataReader to feed items into the list:



    Public Sub GetPlans()

    Dim myConn As New...
Results 1 to 25 of 39
Page 1 of 2 1 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)