15,898,373 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 ManojRGEC (Top 12 by date)
ManojRGEC
15-May-17 22:05pm
View
but unfortunately it is not working for me. I am trying to update property value in "async await" method. so may be this is the main cause that i am not able to update it. Thanks for your help!!
ManojRGEC
15-May-17 13:39pm
View
Thanks for your suggestion :)
ManojRGEC
15-May-17 11:05am
View
I have inherited same abstract class in the request model as well.
e.g
public class RequestModel: BaseResponse
{
//some Properies here
}
ManojRGEC
15-May-17 11:01am
View
Thanks for your response. I have tried same but getting error "object reference not set to an instance of an object"
ManojRGEC
14-May-17 6:01am
View
Thanks for your solution :)
int minLength = int.MaxValue;
int index = -1;
for (int i = 0; i < test.Length; i++)
{
if (test[i].Length < minLength)
{
minLength = test[i].Length;
index = i;
}
}
ManojRGEC
14-May-17 5:41am
View
Thanks, it is working for me. :)
ManojRGEC
8-May-17 9:05am
View
Thanks for your help.
do you have any example to do it?
ManojRGEC
8-May-17 7:28am
View
I have a shape file containing two polygon. how to convert that two polygon into one multipolygon in c#.
Thanks
ManojRGEC
25-Apr-17 7:05am
View
My file name contains a additional dot (.) as given below. I am using Oledb connection string given below.
public const string ConnectionStringTemplateJet = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0};Extended Properties=dBase IV;";
Getting error at ExecuteReader() method
_dbConnection = new OleDbConnection(connectionString);
_dbConnection.Open();
_dbCommand = new OleDbCommand(selectString, _dbConnection);
_dbReader = _dbCommand.ExecuteReader();
ManojRGEC
25-Apr-17 6:57am
View
Thanks for the answer, but it is not working for me. I am getting same error i.e. "The Microsoft Jet database engine could not find the object 'sample.data'. Make sure the object exists and that you spell its name and the path name correctly."
ManojRGEC
25-Nov-16 2:34am
View
how can we solve the above problem.?
ManojRGEC
18-Oct-16 3:28am
View
I need c# code to compare it by color code. I have tried to compare it by pixel by pixel.
I have used below code and it is running without error. But below code doesn't fulfill my requirement.
public Difference Compare(string img1_, string img2_)
{
//total number of pixels
Image img1 = Image.FromFile(img1_);
Image img2 = Image.FromFile(img2_);
int pixelNb = img1.Width * img1.Height;
Double percent = 100;
Bitmap resized_img2_ = ResizeBitmap((Bitmap)img2, img1.Width, img1.Height);
for (int i = 0; i < img1.Width; i++)
{
for (int j = 0; j < img1.Height; j++)
{
percent -= ColorCompare(((Bitmap)img1).GetPixel(i, j), ((Bitmap)resized_img2_).GetPixel(i, j)) / pixelNb;
}
}
Difference percentageDifference = new Difference();
percentageDifference.difference = 100 - percent;
return percentageDifference;
}
public Bitmap ResizeBitmap(Bitmap b, int nWidth, int nHeight)
{
Bitmap result = new Bitmap(nWidth, nHeight);
using (Graphics g = Graphics.FromImage((Image)result))
g.DrawImage(b, 0, 0, nWidth, nHeight);
return result;
}
public Double ColorCompare(Color c1, Color c2)
{
return Double.Parse((Math.Abs(c1.B - c2.B) + Math.Abs(c1.R - c2.R) + Math.Abs(c1.G - c2.G)).ToString()) * 100 / (3 * 255);
}
Show More