Click here to Skip to main content
15,886,807 members

Comments by PeejayAdams (Top 62 by date)

PeejayAdams 4-Oct-19 9:24am View    
Yes the result would be the same in normal circumstances but what Richard is saying is that if you just append user text to the query string, your software is very easy to hijack.

What would happen if I enter the following in TxtSearch?

';DROP TABLE ReceiptVoucher

Always, always, always use Command.Parameters to pass an argument or you will be in a world of trouble!

Seriously, read some of the articles that Richard linked - SQL injection is one of the most common sources of security vulnerabilities in existence - this is such an important thing - understand it before you do anything else.
PeejayAdams 20-Sep-19 6:50am View    
Why not add a score property to your quiz object and increment it every time a correct answer is given? It sounds like the most basic bit of the task to me. Or is it that it's not actually your code?
PeejayAdams 5-Sep-19 7:03am View    
That looks very useful, thank you. I've been Googling for a more generic solution but it does appear to be something very odd in the EMGU set-up!
PeejayAdams 1-Jul-19 5:15am View    
Think about what 'd-m-Y' might be doing ...
PeejayAdams 21-Jun-19 9:56am View    
There's no inbuilt property of OpenFileDialog that will do that (though it would be rather useful!).

You could add code to the FileOK event to compare the path, otherwise you'll need to create your own version of the control.