dcsimg

Search:

Type: Posts; User: Jenner

Page 1 of 13 1 2 3 4

Search: Search took 4.97 seconds.

  1. Replies
    16
    Views
    1,563

    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...
  2. [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...
  3. Replies
    16
    Views
    871

    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....
  4. Replies
    16
    Views
    871

    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...
  5. Replies
    16
    Views
    871

    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()...
  6. Replies
    16
    Views
    871

    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...
  7. Replies
    4
    Views
    330

    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...
  8. Replies
    6
    Views
    466

    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...
  9. Replies
    6
    Views
    466

    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...
  10. Replies
    4
    Views
    330

    Re: Fishing for a StreamWriter

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

    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() ...
  12. 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...
  13. Replies
    4
    Views
    711

    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. :)
  14. Replies
    4
    Views
    711

    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...
  15. 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...
  16. 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...
  17. Replies
    2
    Views
    389

    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...
  18. Replies
    4
    Views
    752

    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...
  19. 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...
  20. Replies
    7
    Views
    695

    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...
  21. Replies
    2
    Views
    315

    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
    ...
  22. Replies
    2
    Views
    356

    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...
  23. Replies
    7
    Views
    667

    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...
  24. Replies
    2
    Views
    356

    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....
  25. Replies
    7
    Views
    667

    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...
  26. Replies
    7
    Views
    667

    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...
  27. 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...
  28. Replies
    7
    Views
    541

    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!
  29. Replies
    12
    Views
    680

    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)...
  30. Replies
    2
    Views
    489

    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...
  31. Replies
    12
    Views
    947

    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...
  32. Replies
    15
    Views
    2,351

    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...
  33. Replies
    15
    Views
    2,351

    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...
  34. Replies
    15
    Views
    2,351

    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...
  35. Replies
    15
    Views
    2,351

    Re: Horrible Database Performance over VPN

    Ok, here's some numbers prior to me doing any tweaking. I'm loading the original 3 tables mentioned in my first post, as well as anything else prior to that load that might affect it. All numbers...
  36. Replies
    15
    Views
    2,351

    Re: Horrible Database Performance over VPN

    Yes, the data is most all read only.

    Ok, good plan. I'm going to make a little "test program" that times each step of the process with your suggestions. The current program is too mature for me...
  37. Replies
    15
    Views
    2,351

    Re: Horrible Database Performance over VPN

    That's why I'm pulling my hair out. Ok, I reduced it down to one table call that's UNIONing from two different databases.
    With my VB.NET code which is essentially:


    Dim dt As New DataTable...
  38. Replies
    15
    Views
    2,351

    Horrible Database Performance over VPN

    Ok, I have a strange situation and I don't even know how to debug it. We have a site-to-site VPN set up between two locations with 50/50mbps fiber links.
    I can transfer a 10Mb file in about 2-3...
  39. Replies
    9
    Views
    766

    VS 2015 Re: A way to determine environment

    @kebo: Would that work if the computer has "been joined to a domain" but "not on a domain controlled network" such as a home network or a hotel's? This is my problem. All these machines are "joined"...
  40. Replies
    9
    Views
    766

    VS 2015 A way to determine environment

    Good morning everyone,

    I have an odd problem I've been brainstorming over.
    I have a general purpose company application, that we want to install on some of the laptops the sales guys use. The...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width