15,891,253 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by FZelle (Top 7 by date)
FZelle
12-Nov-12 9:33am
View
Reason for my vote of 2
Good start, bad end.
Against SqlInjections you don't download whole databases and do the select in code, but you use SqlParameters.
FZelle
18-Apr-12 7:31am
View
Reason for my vote of 2
While it might be neccessary to do such a thing, but unsafe is not needed here.
Use a StringBuilder
FZelle
15-Jan-12 17:23pm
View
Deleted
Why don't you use the widely accepted Dispose Pattern instead of creating your own names?
http://www.codeproject.com/KB/cs/idisposable.aspx
FZelle
27-Sep-11 5:41am
View
Deleted
Yes you are missing alot.
UI Elements normally function by sending windows messages and this only works in the main UI Thread.
And because of that MS has implemented a crossthreadexception whenever you do what you are doing.
But this topic is discussed in so many articles here that it is virtually impossible not to read about it.
FZelle
21-Sep-11 6:07am
View
Deleted
Reason for my vote of 1
This exactly how you shouldn't implement this.
ShowDialog and every UI Related task has to be done in the UI Thread.
It is the action that belongs in the seperate thread
FZelle
22-Feb-11 5:35am
View
Deleted
Reason for my vote of 1
1. Access is not needed for this, the Jet Engine does the Access access.
2. If you would know the basics of ADO.NET you would not create the Connection beforehand. The Adapter can use a connectionstring and then it opens and closes the Connection itself.
3. If you want to fill a datatable, do it, don't use a dataset if you don't need one.
4. After a new on DS/DT you don't need to clear it, it is not "dirty".
5. Because of 2, you only need a global variable for the connectionstring
6. There is a reason why a function can have parameters, not to missuse global variables, so use a parameter for Execute
7. We are not in VB6 anymore, get rid of those ToString() and use string.Format
8. Do not catch Exceptions in the dal ( even if it is located in your form ). Catch the exceptions where it makes sence, in the caller.
FZelle
10-Nov-10 5:00am
View
Deleted
My Solution has nothing to do with esoterics.
It came from the need that it should work in XP and W7.
Tried your version on both?
Show More