Click here to Skip to main content
15,394,005 members

Comments by Gerry Schmitz (Top 200 by date)

Gerry Schmitz yesterday View
I usually create my OC and bind it in the "Loaded" event; be it a window, user control, stack panel ... depends on your app.

"Loaded" can be called multiple times based on the scenario; so you need a "flag" in those cases to say you have already "initialized" in your code.
Gerry Schmitz yesterday View
Your "t" elements don't match:
double t = Math.Sin(freq * (2 * Math.PI) * (phasecent) / samplerate);
double x = Math.Sin(2 *Math.PI*freq*t);
Gerry Schmitz yesterday View
You start with a "bill of materials". You can't just build things in any order. Check out car web sites; they show how to put a car (order) together.
Gerry Schmitz 3 days ago View
Use "Go to definition" in VS (code) to confirm was is supported for that method in the version your are targeting.
Gerry Schmitz 3 days ago View
(a) It's a function of the "service life" of the OS it's running under (b) the 3rd party products and their licensing and distribution (c) whether you stick around to maintain it; e.g. fix the cases you missed (d) the physical devices it depends on (i.e. their MTF) (e) the law (f) ...
Gerry Schmitz 3 days ago View
You're using a wrapper; no one can tell what's going on. You should be able to treat the SD card as a removable disk, if at all.
Gerry Schmitz 4 days ago View
Too much going on. Create the database; wrap that up; then move to the next stage / step. Your "create database column" process could benefit from a "for loop" based on column count.
Gerry Schmitz 4 days ago View
"Calculate" implies a formula; you do no calculating and show no formula so one can't tell what you want to "calculate".
Gerry Schmitz 5 days ago View
A 1 ms timer tick is like "1000 frames per second". You should start by dialing it back to about 50 FPS. VR runs at 90 - 120 FPS.
Gerry Schmitz 6-Aug-22 12:21pm View
You query the data, not the "grid". If you don't know where the data came from, find out.
Gerry Schmitz 5-Aug-22 11:45am View
Is the point "a chart" or is it EXCEL charts in particular. If it's Excel, tag it as such, because there are better ways to work with c# and "charts".
Gerry Schmitz 4-Aug-22 14:22pm View
By leaving variables as "var", you leave everyone else to guess what their "real" types are. Too much effort on someone else's part.
Gerry Schmitz 4-Aug-22 14:01pm View
Probably simpler if you use "StartsWith" or "EndsWith". But I question the whole approach and point of checking characters in a 2 character state code that has zero significance other than to point to a state name.
Gerry Schmitz 3-Aug-22 11:52am View
"Query literals"? While loops? "Start" by figuring out how to eliminate those.
Gerry Schmitz 3-Aug-22 11:48am View
Select and change the sign (difference) on one table; then group (sum) it with the other into a third.
Gerry Schmitz 2-Aug-22 12:34pm View
The "language" of Excel is VBA.
Gerry Schmitz 1-Aug-22 14:22pm View
You have no point of reference regarding performance. You should write a single "Access query" that recalcs "all" inventories. You might find that single brute force is faster that all the other variations. If not, you can at least tell if you're making any progress.
Gerry Schmitz 30-Jul-22 11:14am View
At the "project level", there are not too many patterns; and should be somewhat obvious if you understand the users' requirements: windows / desktop, web app, console app, library, ...
Gerry Schmitz 29-Jul-22 14:24pm View
"tried a bunch of variations" ... and what? Nothing wrong with creating and using a "BasePage" and inheriting from that if it meets your needs. CRUD is CRUD and usually follows the same pattern over and over for a given app.
Gerry Schmitz 28-Jul-22 12:02pm View
You're using "BigDecimal" where most would use float or double; and that's why your asserts are failing (comparing different data types; inconsistent rounding).
Gerry Schmitz 28-Jul-22 11:29am View
I "hardened" a kiosk by removing the keyboard and using only a touch screen.
Gerry Schmitz 27-Jul-22 20:42pm View
Gerry Schmitz 27-Jul-22 12:31pm View
You've shown "one statement" that relates to your heading: ItemSource = xxx.

Everything else, is useless from a problem solving point of view.
Gerry Schmitz 27-Jul-22 12:25pm View
If you're "looping and inserting" (an unrealistic exercise) you should be doing a "begin update ... end update" action if you don't want to see "flickering" (a completely predictable result based on what you're doing).
Gerry Schmitz 25-Jul-22 20:53pm View
Both your "ifs" are the same; you're showing both classes at the same time: " ... video with image icon underneath ...". You need to hide one or the other.
Gerry Schmitz 25-Jul-22 20:46pm View
You delete the record in the database; if it succeeds, you update the grid; otherwise, you have to revert the grid if the database call fails.
Gerry Schmitz 23-Jul-22 11:33am View
The short answer is that Person is part of your "model"; and your model should have it's own namespace / dll; in order to avoid "cycles"; which is what you're experiencing. This applies generally to all common / shared code.
Gerry Schmitz 23-Jul-22 11:25am View
How many records are we talking about? Show them in a list type control if it's only a few. Otherwise, you need to run asynch queries using a concurrent queue that your keypress event can reference.
Gerry Schmitz 21-Jul-22 16:53pm View
The Segoe UI Symbol font includes "box" and "line" drawing characters. In the absence of any useful info about how you're creating your "report", that's the best anybody can do for you.
Gerry Schmitz 21-Jul-22 9:26am View
You make reference to the "report viwer"; but you say nothing about the "report" (file) or where it came from. The "report viewer" displays a "report FILE"; nothing more. It's during report "generation" when you typically use features of the report "engine" (e.g. certain "events") to add extras (e.g. comment "text boxes").
Gerry Schmitz 20-Jul-22 9:41am View
You didn't check the contents of "bytes available". You don't even display it.
Gerry Schmitz 20-Jul-22 9:32am View
The mouse move event fires repeatedly as the mouse moves; you don't need a timer to find the position "over time". And you can test for mouse button down in the move event, if you need to. You may also want to look into "capturing the mouse" if it helps your "tracking" situation.
Gerry Schmitz 19-Jul-22 13:40pm View
The whole scenario is unrealistic; coming up with a sensible solution is therefore also unrealistic.
Gerry Schmitz 17-Jul-22 20:13pm View
You don't add it to the viewer; you'd add it to the report; depending on what that report "engine" supports: images and / or graphics commands.
Gerry Schmitz 14-Jul-22 19:24pm View
Hard to picture any client generating 100 GB of data per day. That's like 4 days of HD video ... per day.
Gerry Schmitz 11-Jul-22 20:03pm View
I'm not aware of any "sample code" that opens a WPF window / dialog in the manner you have shown; e.g. trying to hook up a Closed event handler "after" showing a modal dialogs; among other things.
Gerry Schmitz 11-Jul-22 19:49pm View
Create the data table; then think about the bulk copy; you've got the two mixed together, confusing the whole extract and translate process. That's why it's called ETL.
Gerry Schmitz 11-Jul-22 19:11pm View
He's converting base 10 to base 2. That's the "method".
Gerry Schmitz 11-Jul-22 19:05pm View
(1) Group by country, district and sales (2) then group (original data) by country, district (3) report set 2 NOT IN set 1.
Gerry Schmitz 11-Jul-22 13:47pm View
If this has a "user interface" (as part of an app), you don't need to keep looping if you have a "Weigh" button / function that the user can invoke when he is ready. There's things like "scale in motion", "centering", etc. you have to deal with and it gets a lot harder when you don't know "when" it's important.
Gerry Schmitz 11-Jul-22 13:24pm View
"Term" is an abstract class; you need to determine what "derived" class you are / should be working with; if at all.
Gerry Schmitz 9-Jul-22 18:18pm View
Use RenderTransformOrigin for the center point.
Gerry Schmitz 7-Jul-22 21:09pm View
Use an image control with a click handler. Cycle some images for animation.
Gerry Schmitz 6-Jul-22 12:16pm View
F1 is usually reserved for "Help" (screens); ctrl-F4 is used for closing the current window; and "opening" a form depends on the context: e.g. popping a form on the selected row of a grid (say, F2 - edit).
Gerry Schmitz 6-Jul-22 12:02pm View
You need a printer that can connect to the "same wireless network". But that doesn't help if you're "out of range" (i.e. remote printing); then you're back to using a proxy / server (over the internet / data service / mobile service).
Gerry Schmitz 6-Jul-22 0:38am View
Adding live data indefinitely implies zooming out or scrolling at some point. Standard chart features, or implemented using a scroll viewer and / or view box.
Gerry Schmitz 5-Jul-22 14:07pm View
I suspect your thermal printer doesn't have enough smarts to connect to directly without a driver; you need a printer server (i.e. accessing the printer via some other connected device).
Gerry Schmitz 4-Jul-22 11:07am View
You're welcome!

P.S. I'm not "against" MVVM, but most can't explain why they're using it, while struggling to stay "within the rules". It's about separation of concerns; but that's only relevant if you expect to "swap out" user interfaces; i.e. views. Most apps don't have "multiple personalities" that justify the "at all costs" effort. And plumbing is not the same as business rules; it's like saying you can only use blue cables.
Gerry Schmitz 4-Jul-22 10:54am View
The foreach "within" foreach doesn't makes sense; in the present context, the second foreach should come after the first. And to "concatenate" to .Text, use "+=", not just "=".
Gerry Schmitz 3-Jul-22 12:28pm View
I'm not a MVVM (at all costs) fan, so don't ask me for the "MVVM version".
Gerry Schmitz 3-Jul-22 12:05pm View
Selecting a new row would at least have to trigger a property changed event for the text boxes ... and I don't see any (selection changed handlers).
Gerry Schmitz 2-Jul-22 12:52pm View
If designed properly, you would serialize / deserialize the view model (class). Serializing individual properties still implies a "settings class" simply for the sake of efficiency and sanity.
Gerry Schmitz 2-Jul-22 12:46pm View
Seems to have the right number of buzz words:

LDAP Server & User Details | Greenview Data[^]
Gerry Schmitz 2-Jul-22 12:41pm View
It's basically 2 queries. I would do a union of the individual results instead of a "mash up".
Gerry Schmitz 1-Jul-22 10:16am View
For what it's worth:
Gerry Schmitz 30-Jun-22 21:29pm View
"Tables" per se are not application specific. By default, you're creating something that anybody that wants to locks a table should be able to use. The question is, who's going to use it? "Table locks" are one of the worst "sharing" strategies. One "locks" a document, period, etc.; one is rarely justified in locking a table.
Gerry Schmitz 30-Jun-22 21:17pm View
Put a timer in the first process; check if the second process is still running (poll) at an appropriate interval; when done, stop timer and unhide self / first.
Gerry Schmitz 29-Jun-22 11:08am View
Gerry Schmitz 28-Jun-22 15:46pm View
Yes; you're not "clicking the video"; you're clicking the control which hosts the video; which will return the mouse coordinates in the mouse down event.
Gerry Schmitz 27-Jun-22 11:14am View
Since you admit to not understanding the components you are working with, most suggestions probably won't make any sense. Accept the fact that you will probably need to spend a few days to a week studying (and understanding) the "current" environment before being able to design a "new" environment.
Gerry Schmitz 27-Jun-22 10:25am View
One gets the vague idea that there is an existing email service that you want to update to handle "test" and "production" scenarios. In that case, you should examine the existing email related code in order to decide "where to start".
Gerry Schmitz 23-Jun-22 19:32pm View
Don't use a MessageBox; it's "modal". Display your message in a text field; in the same window or a different (non-modal) window. Apps often use "status bar" at the bottom of a window for "info" type messages.
Gerry Schmitz 23-Jun-22 19:20pm View
They're run time parameters (configuration) for the Internet Information Services web server. So, not "random" and not sh*t.
Gerry Schmitz 23-Jun-22 13:39pm View
Assuming UserControl2 (UC2) is a "singleton", add a static reference to UC2 in UC2: e.g.

public static UC2 Current = null;

Then in the constructor: Current = this;

Later on you can reference UC2 as: UC2.Current.DisableButton();
Gerry Schmitz 19-Jun-22 11:46am View
Let us know why you don't have a "where" clause; or why a Cartesian join on 800 char columns makes sense.
Gerry Schmitz 14-Jun-22 17:12pm View
Maybe you should do a "save" after your "remove". You're mixing transaction "duties".
Gerry Schmitz 14-Jun-22 16:50pm View
The JSON reflects your model; which is simply wrong for what you're asking of it.
Gerry Schmitz 11-Jun-22 9:46am View
I think you need to determine what "tracking" device you will be using. Then how to communicate with said device, etc.
Gerry Schmitz 8-Jun-22 0:15am View
Probably start with the (row) SelectionChanged event.
Gerry Schmitz 8-Jun-22 0:07am View
Use a "static" class / method that accepts a view / user control / view model, etc. Instead of an (implicit) "this", you reference a variable / parameter (to the object in question). It seem like more code but it isn't; just better partitioning.
Gerry Schmitz 6-Jun-22 23:25pm View
Use the TextBlock.Inlines collection. (It's what happens implicitly)
Gerry Schmitz 6-Jun-22 20:05pm View
You need to sort; pair the ins and outs (pair id); and join them.
Gerry Schmitz 4-Jun-22 15:32pm View
I think you want "scroll bars" instead.
Gerry Schmitz 4-Jun-22 9:58am View
The "versioning happens AFTER compilation" ... What does that mean? AssemblyInfo.cs is a "source" file. How do you expect it to take effect? (without compiling / building)
Gerry Schmitz 4-Jun-22 9:52am View
We are to assume that the data base exists, etc. of which there is no evidence. You should consider starting with a "working example" instead of winging it.
Gerry Schmitz 4-Jun-22 9:47am View
You run the report multiple times ... with a different query each time to limit the data selected based on what you want to see on the report. That's just the way it is. If you need to "chain" things, that's another matter (and more work).
Gerry Schmitz 2-Jun-22 12:44pm View
You should have (design) a particle function that accepts a random angle (from an "random angle generator"); instead you have random functions buried in the main routine.
Gerry Schmitz 2-Jun-22 12:29pm View
You should get 1 "tier" working at a time. You're trying to fit a multi-tier application into a single function.
Gerry Schmitz 2-Jun-22 12:19pm View
If you "hide" something, you shouldn't need to "send it to the back". And depending on what UI or layout you're using, "hiding" may also cause the control to "collapse"; which may change the layout; depending on "anchoring". Not enough info to tell what you're doing.
Gerry Schmitz 2-Jun-22 12:07pm View
Since it works for some and not others, I would see why the other don't work instead of trying to fudge my app to somehow capture it. See if you can copy to the clipboard and then see what the clipboard "says" it got.
Gerry Schmitz 1-Jun-22 1:42am View
It may just be a namespace packaging convenience ("web utilities"). And the http version doesn't have a "block read".
Gerry Schmitz 30-May-22 12:39pm View
Plenty, if you use Google.

Gerry Schmitz 30-May-22 12:34pm View
You start with "drawing the structure chart" of the program (i.e. designing) ... they don't mean that the program does the drawing. Once you have a design, you start programming.
Gerry Schmitz 29-May-22 13:40pm View
You're a troll.
Gerry Schmitz 29-May-22 13:38pm View
The "rotated" corner collides with the other rectangle on the same horizontal. Or are you a troll?
Gerry Schmitz 29-May-22 13:21pm View
How do you intersect two rectangles without at least one corner? Think about it.
Gerry Schmitz 29-May-22 10:50am View
You're comparing "polygons"; not "images". You use a matrix transform to rotate the corners; then you use the corners of of the polygons to see if "one point (corner) of one polygon is inside the other".
Gerry Schmitz 27-May-22 13:28pm View
"Get the position of many enemies". You create a (temporary) "list" or dictionary or "array" of the enemies in question with anything else applicable to that "frame" (e.g. distance); adding them from your "for loop" for each new frame.
Gerry Schmitz 27-May-22 13:08pm View
In the same way people say "can you repeat that", you need to "show" people what you're app is "hearing"; then they can correct it themselves, and the app "learns".

Anything else, that's what the "paid" cloud services are for (with the cycles and sampled data behind it).
Gerry Schmitz 27-May-22 12:52pm View
You're making a lot of assumptions, none of which include that probably AI is playing a bigger part. You should do some tests of your key words with different people and determine the "error rate", if any. I suspect it's the "mix" of a given set of words that would be the problem, instead of obvious "commands" which are usually quite distinct in their phonetics.
Gerry Schmitz 26-May-22 14:03pm View
You should be looking at the Form; not the "print command". It looks like the check boxes aren't "anchored" properly (for scrolling) and are floating.
Gerry Schmitz 26-May-22 13:50pm View
Gerry Schmitz 26-May-22 13:48pm View
Objects in 2D and 3D space usually have coordinates (x,y,z). You determine who is "around" something be calculating the distances between objects. Objects are "near" or "far" based on their "range".
Gerry Schmitz 25-May-22 11:05am View
I use WriteableBitmap and it's plenty fast.
Gerry Schmitz 25-May-22 10:54am View
Gerry Schmitz 21-May-22 13:43pm View
Trying to interpret a visual instead of the data that generated visual seems less efficient.
Gerry Schmitz 21-May-22 12:54pm View
.NET has "rich text boxes", "Flow documents", etc. that provide all the control you need. If you're going to invest in .NET, you should figure out how to import / export the different formats into your "universal comparison app". You've done the important stuff; figured out what was missing from the others. (I created my own "markup" for my UWP "book reader"). And there are API's to extract text from images in .NET.
Gerry Schmitz 20-May-22 15:56pm View
Read your specs out loud; taking a breath only when you hit a period. Now put yourself in the place of someone else reading it.
Gerry Schmitz 20-May-22 15:52pm View
In order to perform the queries ("counts"), you will need a "database" / table of "data". (It won't come from your "specs").

And if you're using a credit card scanner, you will typically have access to little or none of the credit card info you're listing.
Gerry Schmitz 20-May-22 12:07pm View
It's all 10 columns then; there's just no info in the last columns of "next page"; which would need a "next page" control break. That's why one creates "reporting files" that go into the final reporting stage; in order to handle situations like this.

Or you use a smaller font, legal landscape, etc. to maintain the original layout (preferred).
Gerry Schmitz 20-May-22 12:01pm View
Is 1111, one trio or 2?
Gerry Schmitz 20-May-22 11:52am View
Side by side implies creating "2 instances" (i.e. windows / panels / user controls) of whatever you're doing now.
Gerry Schmitz 13-May-22 19:29pm View
You appear to have confused the "Windows Forms" ListView with the WPF ListView. For example, SelectedIndex is a "native" WPF (Items control) property that you have instead "customized".
Gerry Schmitz 13-May-22 10:23am View
So; someone asked you to convert some code to "HTML services code". Do you even know what that means? Does anybody?
Gerry Schmitz 13-May-22 10:17am View
You talk about "May 8" then show data for May 12. Confused or just sloppy? Either way, that won't get you anywhere in this business.
Gerry Schmitz 13-May-22 9:59am View
All you'll get is "guesses" because there is nothing to tell the observer what "very large" is; how efficient your queries are; the state the HTML is in; the speed of the computer you are using; etc.
Gerry Schmitz 12-May-22 11:32am View
Your have the "Enterprise" edition of Visual Studio?
Gerry Schmitz 11-May-22 15:27pm View
Sounds like a client pull system. You should have a separate app queue the emails on some "other" server and have the clients pull from the queue; LIFO or FIFO or priority, etc. Unless it's not that important.
Gerry Schmitz 11-May-22 15:16pm View
There's no such thing as "inactive" or "active" key events; they're all active all the time. They are handled (code) or ignored or defaulted or some combination thereof; those are your options.

"e.Handled" for a given key (true/false) is maybe what you're looking for.
Gerry Schmitz 8-May-22 12:02pm View
Anything over a few pages would probably require a person to make it coherent. To this day, "people" still translate complete books; and the version depends on the translator; of which there can be any number.
Gerry Schmitz 8-May-22 11:50am View
Use special colors and special eye glasses that only you have.
Gerry Schmitz 6-May-22 19:44pm View
Your "if's" (2 and 3) are inside the first (if); that won't work. Also, use a switch instead.
Gerry Schmitz 6-May-22 12:44pm View
If you're viewing "one by one", you don't "load 95 files"; you still only load one at a time as you "scroll"; i.e. you use the scroll event to cycle through a list of "file names" to load.
Gerry Schmitz 6-May-22 12:38pm View
Creating log files is part of the SSIS job stream / SQL agent. I think you're looking in the wrong place.
Gerry Schmitz 6-May-22 12:34pm View
Seems there's bit more to it.
Gerry Schmitz 6-May-22 12:30pm View
Did you try it without the ScrollView? Or maybe just a button? Incremental development. One scrolls when one needs to; not because one can.
Gerry Schmitz 6-May-22 12:22pm View
It's the equivalent of "for each k in j" or "j in k"; whichever list is longer being the "IN" list. One for loop.
Gerry Schmitz 2-May-22 12:35pm View
Since it's a DevExpress "export", it's a DevExpress issue. If you can't find the "option", you will need to delete the "zero rows" from the file that is exported. So, ReadAllLines, etc, WriteAllLines.
Gerry Schmitz 1-May-22 23:31pm View
You could use a Unicode character code instead of an image (if you don't already have images). You can treat them as text (box) strings; change the font size; foreground color.
Gerry Schmitz 27-Apr-22 12:30pm View
Generate a temporary dataset; then check the inserts; instead of checking while looping.
Gerry Schmitz 27-Apr-22 12:20pm View
Truncate is faster.
Gerry Schmitz 27-Apr-22 11:41am View
You need a "reject event handler"; and only you know the how, when, what, where and why that triggers it.
Gerry Schmitz 27-Apr-22 11:37am View
"var item" is a FileInfo; use .Name to get the file name.
Gerry Schmitz 20-Apr-22 21:12pm View
Partition the database into smaller databases based on content / query profiles.
Gerry Schmitz 19-Apr-22 9:44am View
Where is your "data" coming from? You likely have a "line break" in there that wasn't there before.
Gerry Schmitz 18-Apr-22 11:18am View
Why do you need to write to the same file you just read? See if it works if you write to a "new" file; it's "local". Then delete and rename or whatever or nothing.
Gerry Schmitz 18-Apr-22 11:08am View
You'll need to read both images into memory and define the values for "i1" and "i2" before you can proceed. Then it's a matter of iterating over the image pixel arrays.
Gerry Schmitz 16-Apr-22 10:24am View
Maybe stick with "one" swiper; 2 at the same time probably makes for cross purposes. Or you need to hook the swipe and interpret it yourself if simple properties won't do it.
Gerry Schmitz 12-Apr-22 22:36pm View
Create "waypoints" / intermediate points between the route points; then draw between them.
Gerry Schmitz 12-Apr-22 10:51am View
I think you want to do a "join".
Gerry Schmitz 8-Apr-22 13:09pm View
Use a DispatcherTimer if you want to interrogate a device at specific intervals without resorting to "sleep". If it's a chain of events, let each event set the timer for the next expected one. Use Stopwatch to reduce interval times that are a function of processing time.
Gerry Schmitz 8-Apr-22 13:01pm View
Without a "Main" or other "entry point" for your "console app", I'm not sure how it works at all.
Gerry Schmitz 8-Apr-22 12:30pm View
Gerry Schmitz 7-Apr-22 12:22pm View
Most (AI/ML) models deal with floats and doubles. I suspect you're passing ints where you shouldn't.
Gerry Schmitz 7-Apr-22 12:19pm View
There should be a "wrap / no wrap" property. Or you need to trim the text to fit the box. And since it shows "2 lines" when you only want one, it implies the text box is too high also. Also, some users / jokers like to add extra carriage returns, etc. so you need to screen for that.
Gerry Schmitz 7-Apr-22 12:12pm View
Is it a requirement? You want a way around a requirement? Why do you think it's a requirement? You looking for a crack?
Gerry Schmitz 7-Apr-22 12:09pm View
Write the csv (entriesDict) contents back to storage; using the "winningNumbers" to filter the row # while writing.
Gerry Schmitz 7-Apr-22 12:03pm View
Gerry Schmitz 3-Apr-22 9:54am View
Reports don't appear out of thin air. I get the impression you've never worked on a CR report, or you would know what the life cycle required; whether it was local / onsite (e.g a laptop with a dev env) or remote (you download the report to work on it, etc).
Gerry Schmitz 1-Apr-22 11:30am View
Group the "values" by value so you wind up with a "distinct" list of values.

Then for each "test", compare the "distinct" list with the "test values". Any "distinct value" not in values for a give test is therefore "not a common value".

A couple of lines of LINQ.
Gerry Schmitz 26-Mar-22 12:55pm View
"Buffer" (or queue) the data received and use a separate thread to determine when you have "complete" cycle. Add timestamps as you receive data if it helps to figure out a "cycle".

Unless you need "real time" (there is no such thing), there is no harm if buffering for a few ms.
Gerry Schmitz 26-Mar-22 12:48pm View
Create a "contact" (or Party) entity for phone1, phone2, etc.; e.g. Home, Business, Next-of-kin / emergency, etc.
Gerry Schmitz 24-Mar-22 14:55pm View
Better "get the data" first and have a look at it; to see if it meets the requirements.
Gerry Schmitz 24-Mar-22 14:51pm View
"SelectedIndex" is probably not as predictable as you're expecting. Also, tabs "load and unload" as you select / deselect; adding to the mix.

Whatever you have in mind is probably easier to control with code behind (in this case); focusing on a navigation event instead of content.
Gerry Schmitz 24-Mar-22 14:17pm View
Generally, "adding" controls in debug mode is less effective than simply making property changes. The more extensive the changes, the less chance the "real time" compiler has of figuring things out (it seems). Code behind usually accepts more changes while running; up to a point.
Gerry Schmitz 24-Mar-22 0:38am View
Add a property / field to store a reference to the "dynamic textbox" you create so you don't have to keep hunting for it in the Controls collection.
Gerry Schmitz 23-Mar-22 21:55pm View
Pressing "Pause", making changes, then pressing Continue works better.
Gerry Schmitz 17-Mar-22 11:13am View
The "first" 12 bytes of the "answer" are on the second line, and the last 4 are on the first line. Then there are repetitions elsewhere. So you're (probably) looping somewhere and have the wrong offset / index issues..
Gerry Schmitz 15-Mar-22 14:45pm View
Put a break point on "disease =" and confirm that what's in ..cells[0].Value is a Disease type.
Gerry Schmitz 14-Mar-22 23:04pm View
Depends on the shape. Here's one shape.
Gerry Schmitz 11-Mar-22 9:58am View
I have yet to find a practical reason to use a "while loop" to update a UI. From 40 ms to 6 seconds, all my "interval based" apps use a DispatcherTimer to update controls on other threads at a given rate. BTW, users don't perceive lag until you get to 100 ms.
Gerry Schmitz 10-Mar-22 21:54pm View
Use Dispatcher.Invoke(); using the Dispatcher object of the UI thread you want to update. (Controls / windows have a .Dispatcher object property)
Gerry Schmitz 9-Mar-22 12:12pm View
If you're already in an "AI job", you should focus on the job. There is no current "AI job description", and the more experience you get, the better off you'll be; at least in the short term until they define what an "AI expert" is.
Gerry Schmitz 9-Mar-22 12:03pm View
If your "loop" is generating invalid markup, then you need to fix it. There is no way around it.
Gerry Schmitz 9-Mar-22 12:00pm View
Wouldn't an IP address be more useful?
Gerry Schmitz 9-Mar-22 11:57am View
You need a "function" (of x and y) if you plan to generate meaningful values.

Examples of graphing exponential functions:
Gerry Schmitz 9-Mar-22 11:18am View
And thank you.
Gerry Schmitz 9-Mar-22 11:17am View
You're welcome.
Gerry Schmitz 8-Mar-22 23:33pm View
var month = 0309 / 100;
var day = 0309 % 100;
string s = $"{month}/{day}";
Gerry Schmitz 8-Mar-22 23:23pm View
Take the 3x3x3 code and make it "scalable"; start by using variables instead of "3x3x3" for the dimensions.
Gerry Schmitz 5-Mar-22 16:05pm View
You didn't say how many points you have; the more points, the better it looks; assuming they have some relation to time.
Gerry Schmitz 28-Feb-22 13:50pm View
You have to know or predict where the pallet is going to be at any given time, and it's orientation; then you can think about it's content. You need at least one corner point (you know the width and height); if you have two corners, you can determine the "tilt" (matrix rotation). You then have a (rotated) polygon for which you can test "points" (sensors) in or outside the polygon.
Gerry Schmitz 23-Feb-22 20:13pm View
Maybe you can classify your large number of customers into small customer groups to "lighten" the load. (e.g. small biz -> enterprise)
Gerry Schmitz 23-Feb-22 16:49pm View
I don't see anywhere that the program ever worked. If it did, you should ask for a demo. Then you can examine the input and output, and see how it relates to your situation. In any event, in doing something "new", I put in lots of "displays" to confirm my expectations. I notice you have none; you just assume you have all the right offsets, defaults, proper dimensions, etc.
Gerry Schmitz 20-Feb-22 13:11pm View
Play your mp3 through speakers while the microphone is on. Or send it them if you're not around; then they don't have to zoom when you're not even there.
Gerry Schmitz 16-Feb-22 22:43pm View
Gerry Schmitz 16-Feb-22 22:30pm View
You're not showing anything useful; like the dbContext / entity definitions.
Gerry Schmitz 16-Feb-22 22:25pm View
You find a similar app that has "passed", and you use them as a "pattern". No yeah buts.
Gerry Schmitz 16-Feb-22 22:09pm View
Modify the "raw" values before loading if you can't figure out how to do it in place. In your case, you could even subtract 9000 and get meaning.
Gerry Schmitz 15-Feb-22 12:47pm View
Maybe your code isn't fully re-entrant, and you're trying to "share" a token.
Gerry Schmitz 14-Feb-22 1:41am View
There are multiple versions of XI; with different features; and how they relate to your version, you haven't established.
Gerry Schmitz 13-Feb-22 22:12pm View
The OS cannot guarantee the start time of any timed event; only that it won't start sooner.
Gerry Schmitz 12-Feb-22 12:03pm View
It would appear you need to fiddle with the "wav" properties in mousePressed().
Gerry Schmitz 12-Feb-22 11:21am View
So you're looking for a crack because you don't want to pay? Any other way of putting it?
Gerry Schmitz 9-Feb-22 12:37pm View
Just hard code it; you won't use "more code". Left = x-1,y; LeftTop = x-1,y-1; Top = x,y-1; etc. 8 lines.
Gerry Schmitz 5-Feb-22 12:14pm View
If it's a "single", why use .Where() instead of .Single() or .SingleOrDefault()?
Gerry Schmitz 3-Feb-22 13:12pm View
It only has to be "fast" if someone is paying for the service (good, fast and cheap: pick 2). And you won't know fast until you benchmark. Usually the problem is a lack of options; a problem which you don't seem to have.
Gerry Schmitz 3-Feb-22 12:43pm View
You should see what the error code is when it is "not successful"; the error message is "your" error message.
Gerry Schmitz 31-Jan-22 14:54pm View
Looks like group on int(depth); then a min and a max in each group.
Gerry Schmitz 31-Jan-22 14:47pm View
It's ONE service; just different calls: add item; get total; etc. It all has to LOOK "in the same place".
Gerry Schmitz 31-Jan-22 14:44pm View
How do you want to "visualize" this message? Browser? Email? Windows Log? All of the above? None of the above?
Gerry Schmitz 30-Jan-22 23:45pm View
I don't know what memory usage "proves" ... you need to confirm that 350 MB is "unusual". What did it start at? I have an app that is at 373 MB and I haven't done anything yet ... and that's normal for this app.
Gerry Schmitz 28-Jan-22 14:37pm View
Create a static (global) dirty switch / method that the user controls can set / call. You're not clear on whether you save "all" tabs if any one is changed.
Gerry Schmitz 28-Jan-22 13:22pm View
The only time I find that works is if you take complete control of the key board for those fields. It's called "incremental searching".
Gerry Schmitz 28-Jan-22 13:08pm View
Start over.
Gerry Schmitz 28-Jan-22 13:05pm View
Probably need to use an ODBC driver for DBF files (various flavors with minor differences exist; e.g.: FoxPro, dBase)
Gerry Schmitz 28-Jan-22 12:59pm View
You can vary transparency by varying .Opacity (0 - 1.0).
Gerry Schmitz 28-Jan-22 0:01am View
Gerry Schmitz 27-Jan-22 23:59pm View
Create a new "empty" Subscriber first; set the properties based on the if; then add it to the collection.
Gerry Schmitz 26-Jan-22 13:25pm View
VM's use memory too. Have too many or use the wrong memory settings. You need to use Task Manager / Performance Monitor to look harder at where the actual problem is. The logs won't tell you that.
Gerry Schmitz 24-Jan-22 22:45pm View
You should mention what package / library you are using. If a word isn't in a dictionary, there is usually a "phonetics" (sounds like) string option (e.g. IPA codes).
Gerry Schmitz 19-Jan-22 2:22am View
Gerry Schmitz 19-Jan-22 2:13am View
You should study working examples as part of your learning process; helps get your bearings. This is a calculator walk-through.

Windows Forms Designer tutorial - Visual Studio (Windows) | Microsoft Docs[^]
Gerry Schmitz 19-Jan-22 2:03am View
You should learn to use arrays to reduce the amount of near duplicate code. The .Tag property on controls can be used to provide extra info to the code that handles those controls.
Gerry Schmitz 18-Jan-22 14:05pm View
Gerry Schmitz 18-Jan-22 13:41pm View
Connection is an IDisposable; I don't see you doing any (disposing).
Gerry Schmitz 18-Jan-22 13:02pm View
That query isn't "attached" to your DbContext; all you've done is create a local result set with a new type. Maybe you should be doing deletes and (re)inserts.
Gerry Schmitz 18-Jan-22 12:53pm View
It says you need to do more than just returning a "where":

... call to either AsEnumerable(), AsAsyncEnumerable(), ToList(), or ToListAsync().
Gerry Schmitz 18-Jan-22 12:16pm View
I don't see you setting the DataContext; and for all we know, the DataGrid has no columns (AutoGenerate = false). And why isn't the Insert in the try block? We can keep guessing based on what you've been posting.
Gerry Schmitz 18-Jan-22 2:11am View
It's complaining about a Dictionary; not an ObservableCollection.