15,914,820 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 Pankit Patel (Top 22 by date)
Pankit Patel
14-Oct-15 5:18am
View
Here when you are doing txtStartDate_TextChanged,
you can perform operation like Payment = Payment * Convert.ToInt32(ddlmonths.SelectedItem)
Pankit Patel
14-Oct-15 4:48am
View
Here's an example (be sure to add a reference to System.Windows.Forms)
using System.Windows.Forms;
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Enter Input 1 in Number Only :");
int input1 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter Input 2 in Number Only :");
int input2 = Convert.ToInt32(Console.ReadLine());
int sum = input1 + input2;
MessageBox.Show(sum.ToString(), "Information");
}
}
Pankit Patel
22-May-15 9:11am
View
let it go for here.He got solution then it doesn't matter for more discussion.Enjoy ..Thanks...
-PP
Pankit Patel
22-May-15 9:00am
View
ok then why he wrote Thread.Sleep(i * 100);
Pankit Patel
22-May-15 9:00am
View
Deleted
ok then why he wrote Thread.Sleep(i * 100);
Pankit Patel
22-May-15 8:27am
View
but when u run this console application it will print 0 to 4 immediate .It will not wait for a second as per statement ( i * 100).
and Console.ReadLine() will always wait for User input then after it will exit.
But main matter is about Threading.
Pankit Patel
22-May-15 2:45am
View
did you mean that you have to prevent to store Same Id at the Same date...???
and what u want to say about "but only month and year"
Pankit Patel
22-May-15 0:15am
View
this will print 0 to 5 but not wait for output...as you mention Thread.Sleep()
Pankit Patel
20-May-15 3:04am
View
this is also fine
Pankit Patel
20-May-15 3:01am
View
I use for that
Pankit Patel
20-May-15 2:51am
View
have you resolved this problem ??
Pankit Patel
20-May-15 1:42am
View
you can use ExecuteReader() for run query in code so this function will give you some messages or some values.
Pankit Patel
20-May-15 1:32am
View
you can refer
https://social.msdn.microsoft.com/Forums/vstudio/en-US/07794679-159b-4363-ae94-a68fe258d827/msvcm90dll-can-not-find-msvcr90dll-?forum=vclanguage
Pankit Patel
20-May-15 1:29am
View
Enjoy coding :)
Pankit Patel
20-May-15 1:00am
View
create new object every time in loop then this error will be removed.
eg. obj = new Object() or whatever.
Pankit Patel
19-May-15 6:20am
View
in which line you are getting this message ?
Pankit Patel
19-May-15 5:31am
View
ok good..carry on friend.. :)
Pankit Patel
19-May-15 5:29am
View
any issues are you facing in upper code which you posted ??
Pankit Patel
19-May-15 4:39am
View
DateTime start = new DateTime(2015, 05, 19, 11, 00, 00, 00);
DateTime end = new DateTime(2015, 05, 20, 6, 00, 00, 00);
DateTime current = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, DateTime.Now.Hour, DateTime.Now.Minute, DateTime.Now.Second);
int result = DateTime.Compare(end, start);
string d1 = start.ToString("dd/MM/yyyy hh:mm:ss tt");
string qw = current.ToString("dd/MM/yyyy hh:mm:ss tt");
string d2 = end.ToString("dd/MM/yyyy hh:mm:ss tt");
DateTime sstart = DateTime.ParseExact(d1, "dd/MM/yyyy hh:mm:ss tt", null); //start date
DateTime eend = DateTime.ParseExact(qw, "dd/MM/yyyy hh:mm:ss tt", null); // current date
DateTime efend = DateTime.ParseExact(d2, "dd/MM/yyyy hh:mm:ss tt", null); // end date
int resu = DateTime.Compare(eend, sstart);
int res1 = DateTime.Compare(eend, efend);
if ((resu > 0) && (res1 > 0))
{
//login the user
}
else
{
//block
}
Pankit Patel
19-May-15 3:22am
View
DateTime start = new DateTime(2015, 05, 19, 11, 00, 00, 00);
DateTime end = new DateTime(2015, 05, 20, 6, 00, 00, 00);
int result = DateTime.Compare(end, start);
Pankit Patel
19-May-15 2:01am
View
ok..thanks
Pankit Patel
19-May-15 1:50am
View
sorry I am not getting what u want to say
Show More