Search:

Type: Posts; User: Jenner

Page 1 of 13 1 2 3 4

Search: Search took 0.05 seconds.

  1. VS 2019 Re: Anybody ever see an error like this? If so, why is it happening?

    Wow, this sparked some good discussion. Some points about the code I'd like to make.

    I didn't declare it at the top because it's just a loop-counter variable. Most other things I do.

    The...
  2. VS 2019 Re: Anybody ever see an error like this? If so, why is it happening?

    Wow, ok. Glad I'm not going crazy then. Yea, mostly from habit of coding, I always declare integers as 0 for some reason... or I say I used to. During this code cleanup, I've been trying to break...
  3. VS 2019 Re: Anybody ever see an error like this? If so, why is it happening?

    Yea, I'm going to try that too (change the variable name). I just need a Work Order now that I can test it with since the one I had yesterday is long-since processed. :D
  4. VS 2019 Re: Anybody ever see an error like this? If so, why is it happening?

    Yea, I'm going to move it to a test project and see if I can get it to happen again. The actual code-block and objects I'm probably not going to be able to re-use since they're UserControl objects...
  5. VS 2019 Re: Anybody ever see an error like this? If so, why is it happening?

    It's not. When I try to drop a random "i = 1" elsewhere in my project, I do get an odd error from one of the assemblies I'm using though:

    'Pervasive.Data.SqlClient.i' is not accessible in this...
  6. VS 2019 Anybody ever see an error like this? If so, why is it happening?

    Ok, so I've been doing some code-cleanup on a lot of old projects, and one of those cleanups broke a project in a very weird way.

    Here's essentially the code in question:


    For Each ob As...
  7. Replies
    16
    Views
    1,723

    Re: [RESOLVED] Speeding Up a Datasource

    It's probably triggering a resize for every row-rendered rather than one for the whole mess of it. There's probably some things to SuspendLayout or BeginUnboundDataLoad or something along those...
  8. [Visual Studio] OMG!! Multi-caret editing, where have you been my whole life!

    For those that didn't look up the patch notes on the latest Visual Studio 15.8, it now has multi-caret editing.

    Say you'd like to edit 20 lines at once... you can now left-click to place the caret...
  9. Replies
    16
    Views
    1,023

    VS 2017 Re: SQL Insert to two different tables

    What's the debug show when you step through it? Is it entering that code-block from that "If" at the top?

    Also, as I mentioned, I don't think Access like using "@name" in the SQL for parameters....
  10. Replies
    16
    Views
    1,023

    VS 2017 Re: SQL Insert to two different tables

    I believe jmcilhenny mentioned they were totally equivalent, with "Convert.Toxxx" being the more "proper .NET notation" and Cxxx() being a legacy alias of the former.

    TryParse() is best when...
  11. Replies
    16
    Views
    1,023

    VS 2017 Re: SQL Insert to two different tables

    I frequently simplify examples even if it's not ideal code. Sometimes it's better to be clear to a new programmer than overwhelm them with all sorts of new concepts. I only mentioned TryParse()...
  12. Replies
    16
    Views
    1,023

    VS 2017 Re: SQL Insert to two different tables

    Yes, just using CInt() is dangerous as well. In reality, you should use If Integer.TryParse(lblid.Text, intTemp) Then...
  13. Replies
    4
    Views
    397

    Re: Fishing for a StreamWriter

    Yea, I've had a few of those. I have a Windows Service app that pulls data from a database and acts as s buffer for like 40 shop-floor workstations so I only get 1 database call every 15-minutes...
  14. Replies
    6
    Views
    560

    Re: MSAccess Query trouble

    Note, MS Access, unlike other databases is "weird" when it comes to parameters. From my experience, when using parameters, it doesn't care about what you "call" the parameters because it doesn't do...
  15. Replies
    6
    Views
    560

    Re: MSAccess Query trouble

    You're close enough I'll give you this.

    Try this:

    Dim constr1 As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\KLandon\Documents\ff14fish.accdb"
    Using...
  16. Replies
    4
    Views
    397

    Re: Fishing for a StreamWriter

    Huh, sounds like a connection hang. Have you tried doing it Async with a timeout counter?
  17. Replies
    16
    Views
    1,023

    VS 2017 Re: SQL Insert to two different tables

    You're re-using the same OleDbCommand for each Execution. When you Parameters.AddWithValue... it doesn't "get rid of the previous ones", it just adds them on. Try adding: .Parameters.Clear() ...
  18. VS 2017 Re: [RESOLVED] How to pass date to/from global variable to DateTimePicker

    You may want to use "TryParseExact" just in case someone does something like type "banana" into the textbox...


    Friend myDate As Date

    Private Sub Button1_Click(sender As Object, e As...
  19. Replies
    4
    Views
    1,409

    VS 2017 Re: Webcam control via .NET

    Huh, thanks, I'll check that out and see if it still works. Could save me a lot of headache :D

    Trying to figure out Windows Image Acquisition (WIA) now. :)
  20. Replies
    4
    Views
    1,409

    VS 2017 Webcam control via .NET

    Hey all, I'm working on an interesting project for our shop floor.

    Basically, line operator puts a box into a loading station that has a webcam pointed down into it. Operator fills the box with...
  21. Re: is there an easy Method to load the data to the listview?

    Cool. Didn't know that. Yea, I'd imagine the .EndEdit method alone would be worth using it for form-close events. Thanks for the info.

    Maybe one of these days I'll try using it again (I...
  22. Re: What will be the performance of 2 RAMs of different memory size in LAPTOP

    First consideration, if the motherboard on your laptop did bank-interleaving (it probably does), then it will no longer with mixed-size RAM. This is a performance thing and one of the reasons you...
  23. Replies
    2
    Views
    431

    Re: Problem with UEFI compatibility...help

    I've honestly never heard of UEFI affecting graphics, but it is a really, really old graphics card so it's possible. I assume it's from some old system and you're using it while waiting for a more...
  24. Replies
    4
    Views
    981

    VS 2017 Re: [RESOLVED] How Do I Disable Alt+F4

    That's actually really nice! I have a "Kiosk-mode" WinForms project template I've cobbled together over the years that could use this as well (boot with Windows, run full-screen, disable things like...
  25. Re: is there an easy Method to load the data to the listview?

    Just curious to your thoughts on this jmcilhinney. What advantages are there to using a BindingSource in between?

    If it's something obvious, forgive me since I never ever use DataBinding nor...
  26. Replies
    7
    Views
    779

    Re: Would like help looking over my code

    Check lines(i) at that point and make sure your data has 4 parts to it.
    If lines(i) for one of those inputs has no commas, then parts() will have no element 1, only an element 0. So when you TELL...
  27. Replies
    2
    Views
    368

    Re: .replace and select case?

    Here's an old ROT13 extension I wrote a while ago:



    Imports System.Runtime.CompilerServices
    Module Extensions
    <Extension>
    Public Function ROT13(ByVal input As String) As String
    ...
  28. Replies
    2
    Views
    429

    VS 2017 Re: Quickly loading data into a program

    About 150,000 records best I can tell from the datafile. I know, I should be using a database, and the data is nicely stored in a database but there are other circumstances involved (as there usually...
  29. Replies
    7
    Views
    870

    Re: Simple PACMAN game question.

    Exactly. You don't need any PictureBoxes actually - but for the sake that you're learning basic game design, let me change that to "you don't need any PictureBoxes for the walls". The maze can be a...
  30. Replies
    2
    Views
    429

    VS 2017 Quickly loading data into a program

    Here's my situation. I have about 12.3 Mb of data - at least this is how large the .xml file is when I use Dataset.WriteXml() from another program.
    It takes about 1 seconds to write that 12.3 Mb....
  31. Replies
    7
    Views
    870

    Re: Simple PACMAN game question.

    Read my rules again. You NEVER have to make it check for a wall collision with a PictureBox! All you need to know, is IF PacMan's picturebox arrives at position 200,300 (for example) which IS an...
  32. Replies
    7
    Views
    870

    Re: Simple PACMAN game question.

    Pacman is all about restricting movement within "zones".

    First rule of Pacman movement: If you're in a tunnel, it will only allow you to move up and down it. Pacman can never be walking down a...
  33. Re: Password Generator Validation (Visual Studio 2010)

    I think I wrote something a while back similar to @dday9's solution. The only difference was I used ASCII character ranges and offsets rather than pre-typed strings getting loaded into character...
  34. Replies
    7
    Views
    679

    VS 2010 Re: Make a timer do its job once?

    Dang, sounds like a little program I wrote about a year back to handle Star Citizen updates. :D

    Glad you got it working!
  35. Replies
    12
    Views
    848

    Re: Working with Threads

    Here's a REALLY easy example of using a thread and having it update a progress bar on the main UI thread as it runs.


    Private t As Threading.Thread
    Private myList As New List(Of String)...
  36. Replies
    2
    Views
    623

    VS 2015 Re: Crystal Report Using MYSQL Database

    The problem is in your SQL. Try this:


    sqL = "SELECT c.ID, c.full_name, c.shop_name,c.Address, c.city,c.phone,c.mobile, d.balance FROM Customer AS c LEFT OUTER JOIN (SELECT sum(balance) AS...
  37. Replies
    12
    Views
    1,291

    Re: Good ol' Blackjack Project

    Sitten Spynne layed out perhaps the easiest way to do it from scratch. I highly recommend following his advice. Object oriented programming can REALLY be taken advantage of in card games. You have...
  38. Replies
    15
    Views
    3,777

    Re: Horrible Database Performance over VPN

    Not so much a traceroute. Mostly pings. Here's the traceroute:

    153697

    This is between a fileserver I've been using as my test machine and the ERP server here at the home office.
    The...
  39. Replies
    15
    Views
    3,777

    Re: Horrible Database Performance over VPN

    No. The VPN is handled via the Cisco-Meraki gateways. Everything inside this building on the internal network. The gateways have two VPN setups, one for site-to-site VPN which connects gateways...
  40. Replies
    15
    Views
    3,777

    Re: Horrible Database Performance over VPN

    First big change - Instead of doing DataAdapter.Fill(DataTable), I'm doing DataReader = SQLCommand.ExecuteReader, DataTable.Load(DataReader):

    My PC at the home office on the same local network as...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width