15,748,615 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 Jaime Olivares (Top 9 by date)
Jaime Olivares
28-Dec-11 3:59am
View
Deleted
Reason for my vote of 3
The topic is very interesting but combining with a bunch of other HTML5 doesn't help to make your point.
Jaime Olivares
25-Jul-11 22:35pm
View
Deleted
Reason for my vote of 1
What is the utility of this?
Jaime Olivares
6-Sep-10 4:18am
View
Deleted
What looks shorter and understandable is:
if (f.DialogResult.Equals(true))
Jaime Olivares
6-Sep-10 4:16am
View
Deleted
Indeed you don't have to declare a variable to evaluate the result. DialogResult is a property of the form.
Jaime Olivares
6-Sep-10 4:14am
View
Deleted
Reason for my vote of 4
I like it.
I think it should work as well, but the intent is not so evident at a first sight.
Jaime Olivares
6-Sep-10 4:12am
View
Deleted
Reason for my vote of 3
That's basically the same as my original proposal: to use .Equals(true)
The problem with using constructor in the same line as ShowDialog is that you don't have any reference to the dialog inside the "if" block, so you cannot gather any data from it. This will work just in dialogs like messageBox with yes/no or ok/cancel.
Jaime Olivares
29-Jun-10 2:44am
View
Deleted
I really like so much the ?? operator, but in this case doesn't look too readable.
Jaime Olivares
29-Jun-10 2:42am
View
Deleted
Yeah, that would be equivalent to Equals(true), although it looks unnecessary like this typical case:
bool a = true;
if (a == true) { etc.... } // it would be enough: if (a)
But in this case IT IS necessary in order to avoid a compile-time error.
Jaime Olivares
14-Jun-10 12:52pm
View
Thanks Henry, but I am looking for Microsoft-owned solutions, not 3rd party.
Show More