dcsimg

Search:

Type: Posts; User: cory_jackson

Page 1 of 13 1 2 3 4

Search: Search took 0.01 seconds.

  1. VS 2019 Re: [RESOLVED] Temp files mysteriously being deleted

    You're right OptionBase1. I effed up. Sorry to waste everyone's time. I can find my code mistakes. I wasn't expecting anyone to answer unless they had experienced this. I thought programmers...
  2. VS 2019 Re: Temp files mysteriously being deleted

    All I wanted to ask was if anyone knew of a case where Windows deleted files automatically from the temp folder.
    I apologize for and regret asking. I'll mark the thread resolved. Please don't waste...
  3. VS 2019 Re: Temp files mysteriously being deleted

    No, I can't expose all my code. I don't have any code in here that I know of that deletes any files until after the error. It's possible I have some mistake and there's a delete someplace, but I...
  4. VS 2019 Re: Temp files mysteriously being deleted

    Sorry, I can't expose this code due to NDA. If I can't find an answer soon, I'll create a demonstration program. I was only hoping maybe someone had experience with Windows deleting rogue temp files...
  5. VS 2019 [RESOLVED] Temp files mysteriously being deleted

    I download a ZIP containing 2 large files (Rec and Master) and 1 small (Stats) via FTP and using the temp file name creation facility name it as such. I then create a directory with the same name and...
  6. VS 2019 Re: A trick to not have a solitary TextBox focused on form load.

    Thanks John. I was ignorant about the AutoSize property. Yours is a better method. I can size it and anchor it on all 4 sides and it works perfectly.
  7. VS 2019 Re: A trick to not have a solitary TextBox focused on form load.

    It took me forever to come back to this. Been hectic lately.
    I misspoke. I mean I do want it to wrap. Sometimes the error is an HTTP or SQL error and can be long and need to wrap. But I don't see...
  8. Replies
    2
    Views
    152

    VS 2019 Re: Windows 10 Action Center alerts

    I skimmed that one but I thought it was something else. I just learned the definition of "toast". Hadn't heard that before. Thank you. I'll read it as soon as I get done with my work.
  9. Replies
    2
    Views
    152

    VS 2019 Windows 10 Action Center alerts

    How do I create an item in the Action Center with a time toast notification? I tried NotifyIcon but it doesn't seem to do anything. If someone could point my to what class that uses, I can probably...
  10. VS 2019 Re: A trick to not have a solitary TextBox focused on form load.

    That's cool. I'm going to have to play with that later.
  11. VS 2019 [RESOLVED] A trick to not have a solitary TextBox focused on form load.

    I have no question, I only want to share a trick I found. I thought maybe someone else could benefit.
    I wanted a non-modal MessageBox but that's impossible. I took the common advice to create a...
  12. VS 2019 Re: [RESOLVED] How to force the current TextBox to validate when closing the form.

    Thank you for your help.
  13. VS 2019 Re: How to force the current TextBox to validate when closing the form.

    I finally got a chance to read the description of ValidateChildren. I didn't realize it returned a Boolean. Very simple and nice. And since my validation routine highlights the offending text and...
  14. VS 2019 Re: How to force the current TextBox to validate when closing the form.

    Great idea. In the form closing event I tried Me.Validate() and Me.ValidateChildren() and it works except it doesn't stop if it fails validation. Any idea how I can cancel?
  15. VS 2019 [RESOLVED] How to force the current TextBox to validate when closing the form.

    I have a settings form that tried to save integer values to My.Settings when the field is validating. It's my new way around the fact one can't bind a TextBox.Text to an integer value setting. Also I...
  16. Re: Getting progress updates from SQLBulkCopy in a BackgroundWorker

    It finally all gelled in my mind. I do want 2 subs, the first handles the event from the SQLBulkCopy object and a very small one to do the update and only have a string parameter to take back to the...
  17. Re: Getting progress updates from SQLBulkCopy in a BackgroundWorker

    At 0444 while laying awake, something clicked. I came out and tried it and got it down to a single sub. I don't think it's an improvement but it means I'm starting to understand slightly better....
  18. Re: Getting progress updates from SQLBulkCopy in a BackgroundWorker

    I changed the last part to what's below and it works. But I'm not sure why. I'll need to come back to this and study it more later. I do understand now that "Private Delegate Sub" is declaring a...
  19. Re: Getting progress updates from SQLBulkCopy in a BackgroundWorker

    I found another article on Microsoft's site that looked promising. I tried to adapt that with the Invoke but got the cross thread exception again.
    Imports System.Data.SqlClient

    Public Class...
  20. Re: Getting progress updates from SQLBulkCopy in a BackgroundWorker

    Now I have the code below. No Intellisense error, but when it gets to the txtProgress.Invoke it complains that the parameter count is mismatched. So I'm guessing I need to do something different than...
  21. Re: Getting progress updates from SQLBulkCopy in a BackgroundWorker

    One last thing. These examples uses "InvokeRequired" to test if invocation is required. But I already know it's required. Can this be simplified to not check that? I mean just do the invoke method...
  22. Re: Getting progress updates from SQLBulkCopy in a BackgroundWorker

    I learned that a a delegate is a variable type that represents a method and it's parameters to be passed. I know that Invoke is a method to inject a call back to the originating thread, in this case,...
  23. Re: Getting progress updates from SQLBulkCopy in a BackgroundWorker

    I'm trying to understand. I read it, but it's clear as mud. I'll study my books more and see if I can understand this cross thread action. Then I'll see if I can implement it. Parts of what that page...
  24. Re: Getting progress updates from SQLBulkCopy in a BackgroundWorker

    But I don't know how to invoke! :-) Thanks for the link. I'll check it out after lunch.
  25. Re: Getting progress updates from SQLBulkCopy in a BackgroundWorker

    I believe BulkCopy is on the same thread as the background worker. When it copies X number of rows, defined by the program, it raises and event and passes to the event handler an object with the...
  26. Re: Getting progress updates from SQLBulkCopy in a BackgroundWorker

    Crossthreading error. bwMain is being declared in the form designer as a component.
  27. Re: Getting progress updates from SQLBulkCopy in a BackgroundWorker

    Topshot I do the same things with other updates in the program, but this event is being raised by the SQLBulkCopy and I think must be handled by another sub. But I can't call ReportProgress from this...
  28. Re: Getting progress updates from SQLBulkCopy in a BackgroundWorker

    Thank you ChrisE, but this doesn't handle the SqlBulkCopy.SqlRowsCopied event. When the event fires, I have it run the OnSqlRowsCopied subroutine but since it's on the BackgroundWorker thread, it...
  29. Re: Getting progress updates from SQLBulkCopy in a BackgroundWorker

    If you want to create this table, you can use this:

    Create table Test (T1 VarChar(255),T2 VarChar(255),T3 VarChar(255),T4 VarChar(255),T5 VarChar(255),T6 VarChar(255),T7 VarChar(255),T8...
  30. Re: Getting progress updates from SQLBulkCopy in a BackgroundWorker

    I changed the method to WriteToServerAsync but it does nothing. I think there's something about creating a task and using "Await", but I can't find any examples in VB.NET. I've tried to convert...
  31. Re: Getting progress updates from SQLBulkCopy in a BackgroundWorker

    I'm looking into WriteToServerAsync method now.
  32. Re: Getting progress updates from SQLBulkCopy in a BackgroundWorker

    I changed my program above to use my Azure Db, made the test table 100 columns of VarChar(255), and created 100k rows of the letter "A" 255 wide in each column, to make the table a big fat pig. I...
  33. Re: Getting progress updates from SQLBulkCopy in a BackgroundWorker

    bulk copy out of the BackgroundWorker and it looks like it was writing to the TextBox without locking up the UI. But it goes too fast. I'm going to try it on my main program where things go much...
  34. Re: Getting progress updates from SQLBulkCopy in a BackgroundWorker

    I accomplished some milestones and had some time this morning to come back to this opportunity for me to learn. Thank you guys for being patient.
    I lashed up a simple program to demonstrate the...
  35. Re: Getting progress updates from SQLBulkCopy in a BackgroundWorker

    No way. My fault. Stupid of me to forget to check the width compatibility again.
  36. Re: Getting progress updates from SQLBulkCopy in a BackgroundWorker

    TG: (Off topic) It was a VarChar overflow. Someone put "CANADA" in a "State" column. They have a state width of 20 and I have 2. I had compared all the widths earlier but I changed my methodology...
  37. Re: Getting progress updates from SQLBulkCopy in a BackgroundWorker

    TG: I'll start another post in a moment. I had to build a plan B, DataTable.WriteXML, and execute it to ensure I don't miss my deadline today. Then I can work on my other issues at leisure. I hope...
  38. Re: Getting progress updates from SQLBulkCopy in a BackgroundWorker

    I'll try to get that up soon. I have another problem with SQLBulkCopy crashing after about 6000 rows. I was hoping SQLBulkCopy would be easier...
  39. Re: Getting progress updates from SQLBulkCopy in a BackgroundWorker

    ChrisE: You're right. That's not my code BTW. But I was testing with a small batch and used 100 for testing with 1000 rows. The production job is 2M rows and I have been using 1000 for that. Mine is...
  40. Re: Getting progress updates from SQLBulkCopy in a BackgroundWorker

    Multiline = yes. I write other parts with the BackgroundWorker.ReportProgress using essentially the same command.
    Large enough = Yes.

    textbox.invalidate sounds interesting. I did try a refresh....
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width