15,741,083 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 Javascript questions
View C++ questions
View Python questions
View Java 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 Ian Good (Top 9 by date)
Ian Good
25-Aug-11 20:05pm
View
hey thanks for the 5
Regions are pretty wacky; You can change a Form's Region any way you see fit as well, so you can come up with a very unique user interface for your application, which could be a quirky fun feature for clients, or simply annoying :P
Ian Good
22-May-11 1:30am
View
Deleted
The way extension methods are declared using the "this" keyword (for the first parameter) allows us to call the function as if it were a public method of that class.
This example will work with any string--both variables & constant values.
Ex:
string myString = "Two";
EnumOne result = myString.ParseEnum<EnumOne>(true);
Ian Good
11-Apr-11 19:54pm
View
Deleted
Reason for my vote of 5
Cool!
Wish I needed to use this somewhere :)
Ian Good
22-Mar-11 18:07pm
View
Deleted
here's an image showing the errors from dragging partially off screen & resizing the picture box
errors.png
Ian Good
21-Mar-11 22:16pm
View
Deleted
Reason for my vote of 1
this demo quickly breaks down when the picture box needs to redraw itself, causing undesired results and errors
Ian Good
21-Mar-11 21:26pm
View
I tested this case in a new solution and had no problems (other than the compiler error for
public Creature();
).
What .Net version are you using?
Ian Good
15-Mar-11 23:35pm
View
Against my better judgment, I'm replying again to try to explain what's going on here.
I gave a lower vote to this solution while giving a higher vote to the other solution
in hopes that the better method would end up at the top of the page where others could find it more easily.
If we really want to get into it - I like the other answer over yours & think this is a bad solution.
apaka's answer allows the desired behavior to be implemented (separate from the rest of the application logic) in a callback function & can provide feedback to the user about why the file was rejected before the dialog box closes--allowing the user to select a different file immediately.
Ian Good
15-Mar-11 12:30pm
View
I didn't intend for you to take offense.
I simply want to others who read this topic to understand which method is accepted as standard practice & fits best with the .Net programming style.
Ian Good
10-Mar-11 17:48pm
View
Voted down because, while it works, using the FileOk event handler (see apaka's solution) is the preferred method.
Show More