As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I need to put a code using C#. Need to could number of days once by using 2 dateTimePicker controls.
Anyone has any idea? I know how to do it in vb.net not sure how to do in C#.
vb.net code:
NumberOfDays = DateDiff(DateInterval.Day, CDate(StartDateTimePicker.Text),
CDate(EndDateTimePicker.Text))
int NumberOfDays = (StartDateTimePicker.Value - EndDateTimePicker.Value).Days;
Or if you want to account for partial days:
double NumberOfDays;
NumberOfDays = (StartDateTimePicker.Value - EndDateTimePicker.Value).TotalDays;
var numberOfDays = (EndDateTimePicker.Value - StartDateTimePicker.Value).TotalDays;
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm trying to declare a constant value for a hexdecimal value but it seems I can't achieve this in C#.
const PROCESSES = &H1F0FFF;
Why is this not working?
const int PROCESSES = 0x1F0FFF;
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am still in the stage of trying to not write expletive comments to myself, so on project completion I do a search for the main "abused" words.
Are the Microsoft devs filthy mouthed or is it coincedence?
(* = removed letter)
D:\Projects......resx(3996): 8g7fqR/cfvvt386D/zGF1TYJfIB5weKlYcESxrKwcKlUcU*tpdF5VrGvpYZHiS1VfD12tuzm9Zs3SyVn
D:\Projects\.....resx(3706): L6QEuEi5sMzyh24/noC5wqUC*NTXlQPWqr62XJCX8nrbw8D3TWUEJYkisCnDNDu0KYPqAL/UEIC/yZqA
D:\Projects\....resx(7349): aKtRVgW2niEevp/n4XhGaMqS941TpuzAEbXSbIVlIgJ8mPZDf3Cp2qvY9WrTpd8vPAtOF*cK34BGgRYg
D:\Projects\....resx(1963): GYDa2oFR45PBMFZ9tcDfU*KmjQLw0eMn7PX4mny9seuYwA3QDeQyi96k5ltz625fhxcDXFGb6O2tyijO
D:\Projects\....resx(2247): 8kotbWCBQzzDPVRz9b1691MLa4uWM8oB5NXcMbFWc*CkpL48XtyQo1JL0vJgrjupuYPRT9/vDvvcOBPE
The answer is one of:
Yes
No
We'll give them the benefit of the doubt and say most likely no, these are just random.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
i would like to know the best
face detection software
i tried luxand facesdk but its very too much. 4000usd per process per year.
so what is the alternative for .NET , ASP.NET or MVC
You can try with OpenCV library
Link : http://www.codeproject.com/Articles/23191/Face-and-Eyes-Detection-Using-OpenCV
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
i m getting string e.g.('1','2','7','12') from database & i want to query sqlserve i.e.
select subject_nme from subject where subjid=1 && subjid=2 && subjid=7
using the intgers from string.For querying i need to create dynamic variables to store the subjid into them and use them.
THANX
Select subject_nme from subject where subjid in ('1','2','7','12')
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am planning to write a LINQ provider, so that I can query data in a custom store - for example, let us say, some custom file format.
What is a good way to start? Any examples?