Search:
Type: Posts; User: Jenner
Search:
Search took 0.06 seconds.
-
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...
-
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...
-
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
-
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...
-
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...
-
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...
-
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...
-
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...
-
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....
-
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...
-
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()...
-
Yes, just using CInt() is dangerous as well. In reality, you should use If Integer.TryParse(lblid.Text, intTemp) Then...
-
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...
-
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...
-
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...
-
Huh, sounds like a connection hang. Have you tried doing it Async with a timeout counter?
-
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() ...
-
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...
-
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. :)
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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
...
-
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...
-
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...
-
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....
-
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...
-
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...
-
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...
-
Dang, sounds like a little program I wrote about a year back to handle Star Citizen updates. :D
Glad you got it working!
-
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)...
-
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...
-
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...
-
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...
-
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...
-
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...
|
Click Here to Expand Forum to Full Width
|